WordPress.org

Make WordPress Core

Ticket #9022: 9022.patch

File 9022.patch, 568 bytes (added by Viper007Bond, 9 years ago)
  • wp-includes/media.php

     
    578578        if ( $id ) $id = 'id="' . $id . '" ';
    579579
    580580        return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
    581         . $content . '<p class="wp-caption-text">' . $caption . '</p></div>';
     581        . do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>';
    582582}
    583583
    584584add_shortcode('gallery', 'gallery_shortcode');