Make WordPress Core

Ticket #51846: 51846.patch

File 51846.patch, 689 bytes (added by Laxman Prajapati, 4 years ago)

Added "alt" attribute on the image tag.

  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 26fe0a3674..a84ffce694 100644
    a b function get_custom_logo( $blog_id = 0 ) { 
    10811081        } elseif ( is_customize_preview() ) {
    10821082                // If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview).
    10831083                $html = sprintf(
    1084                         '<a href="%1$s" class="custom-logo-link" style="display:none;"><img class="custom-logo"/></a>',
     1084                        '<a href="%1$s" class="custom-logo-link" style="display:none;"><img class="custom-logo" alt="" /></a>',
    10851085                        esc_url( home_url( '/' ) )
    10861086                );
    10871087        }