Changeset 27404 for trunk/src/wp-includes/media.php
- Timestamp:
- 03/05/2014 04:53:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r27397 r27404 674 674 * @type int $width The width of the caption, in pixels. 675 675 * @type string $caption The caption text. 676 * @type string $class Additional class name(s) added to the caption container. 676 677 * } 677 678 * @param string $content Optional. Shortcode content. … … 709 710 'align' => 'alignnone', 710 711 'width' => '', 711 'caption' => '' 712 'caption' => '', 713 'class' => '', 712 714 ), $attr, 'caption' ); 713 715 … … 742 744 $style = 'style="width: ' . (int) $caption_width . 'px" '; 743 745 744 return '<div ' . $atts['id'] . $style . 'class="wp-caption ' . esc_attr( $atts['align'] ) . '">' 746 $class = trim( 'wp-caption ' . $atts['align'] . ' ' . $atts['class'] ); 747 748 return '<div ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">' 745 749 . do_shortcode( $content ) . '<p class="wp-caption-text">' . $atts['caption'] . '</p></div>'; 746 750 }
Note: See TracChangeset
for help on using the changeset viewer.