Ticket #14380: 14380-filter.diff
File 14380-filter.diff, 623 bytes (added by , 12 years ago) |
---|
-
wp-includes/media.php
651 651 652 652 if ( $id ) $id = 'id="' . esc_attr($id) . '" '; 653 653 654 return '<div ' . $id . 'class="wp-caption ' . esc_attr( $align) . '" style="width: ' . (10 + (int) $width) . 'px">'654 return '<div ' . $id . 'class="wp-caption ' . esc_attr( $align ) . '" style="width: ' . apply_filters( 'wp-caption-width', ( 10 + (int) $width ) ) . 'px">' 655 655 . do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>'; 656 656 } 657 657