WordPress.org

Make WordPress Core

Ticket #37305: 37305.diff

File 37305.diff, 732 bytes (added by henry.wright, 3 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index 83eabe8..c5bfe16 100644
    function get_custom_logo( $blog_id = 0 ) { 
    880880
    881881        // We have a logo. Logo is go.
    882882        if ( $custom_logo_id ) {
    883                 $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',
     883                $html = sprintf( '<div itemscope itemtype="%1$s"><a href="%2$s" class="custom-logo-link" rel="home" itemprop="url">%3$s</a></div>',
     884                        esc_url( 'https://schema.org/Brand' ),
    884885                        esc_url( home_url( '/' ) ),
    885886                        wp_get_attachment_image( $custom_logo_id, 'full', false, array(
    886887                                'class'    => 'custom-logo',