WordPress.org

WordPress build repository browser

Changeset 42534


Ignore:
Timestamp:
02/12/18 22:36:33 (10 days ago)
Author:
SergeyBiryukov
Message:

Media: In img_caption_shortcode(), make sure $id and $caption_id are always defined.

See #34595.
Built from https://develop.svn.wordpress.org/trunk@42706

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r42533 r42534  
    15611561    } 
    15621562 
     1563    $id = $caption_id = $describedby = ''; 
     1564 
    15631565    if ( $atts['id'] ) { 
    15641566        $atts['id'] = sanitize_html_class( $atts['id'] ); 
     
    15711573        $atts['caption_id'] = 'caption-' . str_replace( '_', '-', $atts['id'] ); 
    15721574    } 
    1573  
    1574     $describedby = ''; 
    15751575 
    15761576    if ( $atts['caption_id'] ) { 
  • trunk/wp-includes/version.php

    r42533 r42534  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42705'; 
     7$wp_version = '5.0-alpha-42706'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.