diff --git a/e2e-tests/specs/customizer/hfg/hfg-copyright-component.spec.ts b/e2e-tests/specs/customizer/hfg/hfg-copyright-component.spec.ts index 0e4ee8ad62..376e7bf95e 100644 --- a/e2e-tests/specs/customizer/hfg/hfg-copyright-component.spec.ts +++ b/e2e-tests/specs/customizer/hfg/hfg-copyright-component.spec.ts @@ -6,8 +6,26 @@ test('Checks the copyright in front-end', async ({ page }) => { await expect( page.locator('.hfg_footer .footer--row[data-show-on="desktop"]') ).toHaveText('Neve | Powered by WordPress'); + await expect( + page + .locator('.hfg_footer .footer--row[data-show-on="desktop"] a') + .nth(0) + ).toHaveAttribute('href', 'https://themeisle.com/themes/neve/'); + await expect( + page + .locator('.hfg_footer .footer--row[data-show-on="desktop"] a') + .nth(1) + ).toHaveAttribute('href', 'https://wordpress.org'); + // Check that the text is also present for the Mobile footer await expect( page.locator('.hfg_footer .footer--row[data-show-on="mobile"]') ).toHaveText('Neve | Powered by WordPress'); + + await expect( + page.locator('.hfg_footer .footer--row[data-show-on="mobile"] a').nth(0) + ).toHaveAttribute('href', 'https://themeisle.com/themes/neve/'); + await expect( + page.locator('.hfg_footer .footer--row[data-show-on="mobile"] a').nth(1) + ).toHaveAttribute('href', 'https://wordpress.org'); }); diff --git a/header-footer-grid/Core/Builder/Footer.php b/header-footer-grid/Core/Builder/Footer.php index 576aa128ba..8a195b2a14 100644 --- a/header-footer-grid/Core/Builder/Footer.php +++ b/header-footer-grid/Core/Builder/Footer.php @@ -157,7 +157,7 @@ public function add_footer_component( $builder, $row, $slot ) { /* translators: %1$s is Theme Name ( Neve ), %2$s is WordPress */ esc_html__( '%1$s | Powered by %2$s', 'neve' ), wp_kses_post( '

Neve' ), - wp_kses_post( 'WordPress

' ) + wp_kses_post( 'WordPress

' ) ); $output .= '';