Make WordPress Core

Ticket #50933: general-template-50933.patch

File general-template-50933.patch, 646 bytes (added by demetris, 4 years ago)

Disable lazy loading for custom logo, with explanatory comment

  • wp-includes/general-template.php

     
    10171017
    10181018        // We have a logo. Logo is go.
    10191019        if ( $custom_logo_id ) {
     1020                /*
     1021                 * Disallow 'loading' attribute to avoid triggering an issue Firefox seems to have.
     1022                 * See https://core.trac.wordpress.org/ticket/50933.
     1023                 */
    10201024                $custom_logo_attr = array(
    10211025                        'class' => 'custom-logo',
     1026                        'loading' => false,
    10221027                );
    10231028
    10241029                $unlink_homepage_logo = (bool) get_theme_support( 'custom-logo', 'unlink-homepage-logo' );