Skip to content

Commit

Permalink
fix: removes custom logo preload causing duplicate content issues
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jan 14, 2020
1 parent 9a22495 commit 04cad07
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,16 +374,6 @@ public function generator() {
return;
}
echo '<meta name="generator" content="Optimole ' . esc_attr( OPTML_VERSION ) . '">';

if ( ! current_theme_supports( 'custom-logo' ) ) {
return;
}
$custom_logo_id = get_theme_mod( 'custom_logo' );
$image = wp_get_attachment_image_src( $custom_logo_id, 'full' );
if ( empty( $image ) ) {
return;
}
echo '<link rel="preload" href="' . esc_url( $image[0] ) . '" as="image">';
}

/**
Expand Down

0 comments on commit 04cad07

Please sign in to comment.