Changeset 8289
- Timestamp:
- 07/08/2008 11:37:56 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/classic/style.css
r8239 r8289 323 323 /* Captions & aligment */ 324 324 .aligncenter, 325 d l.aligncenter {325 div.aligncenter { 326 326 display: block; 327 327 margin-left: auto; … … 337 337 } 338 338 339 .wp _caption {339 .wp-caption { 340 340 border: 1px solid #ddd; 341 341 text-align: center; … … 349 349 } 350 350 351 .wp _caption img {351 .wp-caption img { 352 352 margin: 0; 353 353 padding: 0; … … 355 355 } 356 356 357 .wp _caption_dd{357 .wp-caption p.wp-caption-text { 358 358 font-size: 11px; 359 359 line-height: 17px; -
trunk/wp-content/themes/default/style.css
r8239 r8289 641 641 /* Captions */ 642 642 .aligncenter, 643 d l.aligncenter {643 div.aligncenter { 644 644 display: block; 645 645 margin-left: auto; … … 647 647 } 648 648 649 .wp _caption {649 .wp-caption { 650 650 border: 1px solid #ddd; 651 651 text-align: center; … … 659 659 } 660 660 661 .wp _caption img {661 .wp-caption img { 662 662 margin: 0; 663 663 padding: 0; … … 665 665 } 666 666 667 .wp _caption_dd{667 .wp-caption p.wp-caption-text { 668 668 font-size: 11px; 669 669 line-height: 17px; -
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.