themes
themes copied to clipboard
Gazette: Remove redundant logo link tag
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:

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:

Related issue(s):
Fixes #1945
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.