Changeset 8289 for trunk/wp-includes/media.php
- Timestamp:
- 07/08/2008 11:37:56 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r8261 r8289 351 351 } 352 352 353 add_shortcode('wp_caption', ' wp_caption_shortcode');354 355 function wp_caption_shortcode($attr, $content = null) {353 add_shortcode('wp_caption', 'img_caption_shortcode'); 354 355 function img_caption_shortcode($attr, $content = null) { 356 356 357 357 // Allow plugins/themes to override the default caption template. 358 $output = apply_filters(' wp_caption_shortcode', '', $attr, $content);358 $output = apply_filters('img_caption_shortcode', '', $attr, $content); 359 359 if ( $output != '' ) 360 360 return $output; … … 372 372 if ( $id ) $id = 'id="' . $id . '" '; 373 373 374 return '<d l ' . $id . 'class="wp_caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'375 . '<dt class="wp_caption_dt">' . $content . '</dt><dd class="wp_caption_dd">' . $caption . '</dd></dl>';374 return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">' 375 . $content . '<p class="wp-caption-text">' . $caption . '</p></div>'; 376 376 } 377 377
Note: See TracChangeset
for help on using the changeset viewer.