Make WordPress Core


Ignore:
Timestamp:
02/12/2018 10:35:56 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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

See #34595.

File:
1 edited

Legend:

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

    r42705 r42706  
    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'] ) {
Note: See TracChangeset for help on using the changeset viewer.