Make WordPress Core

Ticket #45694: 45694.patch

File 45694.patch, 522 bytes (added by Soben, 5 years ago)
  • src/wp-includes/media.php

     
    15691569                $id         = 'id="' . esc_attr( $atts['id'] ) . '" ';
    15701570        }
    15711571
    1572         if ( $atts['caption_id'] ) {
     1572        if ( isset($atts['caption_id']) ) {
    15731573                $atts['caption_id'] = sanitize_html_class( $atts['caption_id'] );
    15741574        } elseif ( $atts['id'] ) {
    15751575                $atts['caption_id'] = 'caption-' . str_replace( '_', '-', $atts['id'] );