mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Remove legacy Jetpack logo
This commit is contained in:
parent
797c139f3f
commit
c277dbbc66
1 changed files with 0 additions and 22 deletions
|
@ -203,28 +203,6 @@ if ( ! function_exists( 'storefront_site_title_or_logo' ) ) {
|
|||
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
|
||||
$logo = get_custom_logo();
|
||||
$html = is_home() ? '<h1 class="logo">' . $logo . '</h1>' : $logo;
|
||||
} elseif ( function_exists( 'jetpack_has_site_logo' ) && jetpack_has_site_logo() ) {
|
||||
// Copied from jetpack_the_site_logo() function.
|
||||
$logo = site_logo()->logo;
|
||||
$logo_id = get_theme_mod( 'custom_logo' ); // Check for WP 4.5 Site Logo.
|
||||
$logo_id = $logo_id ? $logo_id : $logo['id']; // Use WP Core logo if present, otherwise use Jetpack's.
|
||||
$size = site_logo()->theme_size();
|
||||
$html = sprintf(
|
||||
'<a href="%1$s" class="site-logo-link" rel="home" itemprop="url">%2$s</a>',
|
||||
esc_url( home_url( '/' ) ),
|
||||
wp_get_attachment_image(
|
||||
$logo_id,
|
||||
$size,
|
||||
false,
|
||||
array(
|
||||
'class' => 'site-logo attachment-' . $size,
|
||||
'data-size' => $size,
|
||||
'itemprop' => 'logo',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$html = apply_filters( 'jetpack_the_site_logo', $html, $logo, $size );
|
||||
} else {
|
||||
$tag = is_home() ? 'h1' : 'div';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue