Make WordPress Core

Ticket #58884: 58884.patch

File 58884.patch, 713 bytes (added by pitamdey, 13 months ago)

After applying this solution the issue is resolved

  • wp-includes/general-template.php

     
    11001100                 * If the alt attribute is not empty, there's no need to explicitly pass it
    11011101                 * because wp_get_attachment_image() already adds the alt attribute.
    11021102                 */
    1103                 $image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr );
     1103                $image = wp_get_attachment_image( $custom_logo_id, array( 512, 512 ), false, $custom_logo_attr );
    11041104
    11051105                if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) {
    11061106                        // If on the home page, don't link the logo to home.