themes icon indicating copy to clipboard operation
themes copied to clipboard

Gazette: Remove redundant logo link tag

Open swoodipto opened this issue 6 years ago • 1 comments

Changes proposed in this Pull Request:

Previously jetpack.php checked for jetpack_the_site_logo()'s non-existence; and returned the function atleast once, which added a redundant <a href="#" class="site-logo-link"></a> when there was no logo image uploaded.

if ( ! function_exists( 'jetpack_the_site_logo' ) ) {
	return;
} else {
	jetpack_the_site_logo();
}

Adds this white-space due to that redundant <a> tag for the logo:

Gazette Logo Issue

Changed the logic to check jetpack_the_site_logo()'s existence instead and if there is a logo uploaded:

if ( function_exists( 'jetpack_the_site_logo' ) && has_site_logo() ) {
	jetpack_the_site_logo();
} else {
	return;
}

Removes that redundant <a> or the logo and thus; the white-space:

Gazette Issue Resolved

Related issue(s):

Fixes #1945

swoodipto avatar Sep 26 '20 11:09 swoodipto

Looks like I worked on the non-merged branch add/phpcs — lack of coffee, sorry about this — please let me know if this needs to be reworked on the master branch instead, will do the same.

swoodipto avatar Sep 26 '20 11:09 swoodipto