Changeset 27668 for trunk/src/wp-includes/media.php
- Timestamp:
- 03/24/2014 02:04:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r27662 r27668 766 766 $atts['id'] = 'id="' . esc_attr( $atts['id'] ) . '" '; 767 767 768 $class = trim( 'wp-caption ' . $atts['align'] . ' ' . $atts['class'] ); 769 770 if ( current_theme_supports( 'html5', 'caption' ) ) { 771 return '<figure ' . $atts['id'] . 'style="width: ' . (int) $atts['width'] . 'px;" class="' . esc_attr( $class ) . '">' 772 . do_shortcode( $content ) . '<figcaption class="wp-caption-text">' . $atts['caption'] . '</figcaption></figure>'; 773 } 774 768 775 $caption_width = 10 + $atts['width']; 769 776 … … 788 795 if ( $caption_width ) 789 796 $style = 'style="width: ' . (int) $caption_width . 'px" '; 790 791 $class = trim( 'wp-caption ' . $atts['align'] . ' ' . $atts['class'] );792 797 793 798 return '<div ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">'
Note: See TracChangeset
for help on using the changeset viewer.