WordPress.org

WordPress build repository browser

Changeset 42520


Ignore:
Timestamp:
02/11/18 14:53:30 (11 days ago)
Author:
SergeyBiryukov
Message:

Media: Make sure $caption_id does not depend on an undefined variable.

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r42519 r42520  
    15571557    } 
    15581558 
     1559    $caption_id = ''; 
     1560 
    15591561    if ( ! empty( $atts['id'] ) ) { 
    15601562        $att_id     = esc_attr( sanitize_html_class( $atts['id'] ) ); 
    15611563        $atts['id'] = 'id="' . $att_id . '" '; 
    1562     } 
    1563  
    1564     $caption_id = 'caption-' . str_replace( '_', '-', $att_id ); 
     1564        $caption_id = 'caption-' . str_replace( '_', '-', $att_id ); 
     1565    } 
    15651566 
    15661567    $class = trim( 'wp-caption ' . $atts['align'] . ' ' . $atts['class'] ); 
  • trunk/wp-includes/version.php

    r42519 r42520  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42691'; 
     7$wp_version = '5.0-alpha-42692'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.