WordPress.org

WordPress build repository browser

Changeset 42522


Ignore:
Timestamp:
02/11/18 15:40:30 (11 days ago)
Author:
SergeyBiryukov
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r42521 r42522  
    16241624            str_replace( '<img ', '<img ' . $describedby, do_shortcode( $content ) ), 
    16251625            sprintf( 
    1626                 '<p id="%s" class="wp-caption-text">%s</p>', 
     1626                '<p %sclass="wp-caption-text">%s</p>', 
    16271627                $atts['caption_id'], 
    16281628                $atts['caption'] 
  • trunk/wp-includes/version.php

    r42521 r42522  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42693'; 
     7$wp_version = '5.0-alpha-42694'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.