From fa80eb011f7ee658f5391f700de3feb5c5224154 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 14 Dec 2015 00:09:27 +0000 Subject: [PATCH] Accessibility: remove title attributes from the available headers in the (no more used) `custom-header.php` screen. Fixes #35062. Built from https://develop.svn.wordpress.org/trunk@35905 git-svn-id: http://core.svn.wordpress.org/trunk@35869 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 5 ++--- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index dfb90cb0be..a51991a31f 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -282,14 +282,13 @@ class Custom_Image_Header { foreach ( $headers as $header_key => $header ) { $header_thumbnail = $header['thumbnail_url']; $header_url = $header['url']; - $header_desc = empty( $header['description'] ) ? '' : $header['description']; - $header_alt_text = empty( $header['alt_text'] ) ? $header_desc : $header['alt_text']; + $header_alt_text = empty( $header['alt_text'] ) ? '' : $header['alt_text']; echo '
'; echo ''; + echo '' . esc_attr( $header_alt_text ) .''; echo '
'; } echo '
'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 7f720af050..d9cf3a7c1b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35904'; +$wp_version = '4.5-alpha-35905'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.