From 47c146ac270a660e17c447f358ecb62b15c8abdf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 8 Jan 2021 16:55:07 +0000 Subject: [PATCH] Accessibility: Customize: Add an empty `alt` attribute to the `` tag used as a hidden placeholder in the Customizer preview when no logo is chosen. Per accessibility best practices, it is recommended that all HTML `` elements have an `alt` attribute. Any decorative images should have an empty `alt` attribute (`alt=""`). Props laxman-prajapati, sabernhardt, audrasjb. Fixes #51846. Built from https://develop.svn.wordpress.org/trunk@49949 git-svn-id: http://core.svn.wordpress.org/trunk@49648 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 26fe0a3674..a84ffce694 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1081,7 +1081,7 @@ function get_custom_logo( $blog_id = 0 ) { } elseif ( is_customize_preview() ) { // If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview). $html = sprintf( - '', + '', esc_url( home_url( '/' ) ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 10069f4420..02dd37ceb4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49948'; +$wp_version = '5.7-alpha-49949'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.