From beeafbc7ec29f07b1824521b3cc33a5b4b63a938 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 11 Feb 2018 15:40:30 +0000 Subject: [PATCH] Media: After [42693], update HTML4 markup in `img_caption_shortcode()` to avoid an empty ID attribute as well. Add a unit test for `aria-describedby` in `img_caption_shortcode()`. See #34595. Built from https://develop.svn.wordpress.org/trunk@42694 git-svn-id: http://core.svn.wordpress.org/trunk@42522 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 68ac031298..55a8ad3704 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1623,7 +1623,7 @@ function img_caption_shortcode( $attr, $content = null ) { esc_attr( $class ), str_replace( '%s

', + '

%s

', $atts['caption_id'], $atts['caption'] ) diff --git a/wp-includes/version.php b/wp-includes/version.php index f1e9143a51..b08cf71018 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42693'; +$wp_version = '5.0-alpha-42694'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.