From 8a37dfa5b27b196c25d531f8c3c621c8ea0db107 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 8 Jul 2008 23:37:56 +0000 Subject: [PATCH] Use dash instead of underscore for CSS names. Props azaozz. see #6812 git-svn-id: http://svn.automattic.com/wordpress/trunk@8289 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/classic/style.css | 8 ++++---- wp-content/themes/default/style.css | 8 ++++---- wp-includes/media.php | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wp-content/themes/classic/style.css b/wp-content/themes/classic/style.css index 04f612dce..93dc883bc 100644 --- a/wp-content/themes/classic/style.css +++ b/wp-content/themes/classic/style.css @@ -322,7 +322,7 @@ ul.post-meta span.post-meta-key { /* Captions & aligment */ .aligncenter, -dl.aligncenter { +div.aligncenter { display: block; margin-left: auto; margin-right: auto; @@ -336,7 +336,7 @@ dl.aligncenter { float: right; } -.wp_caption { +.wp-caption { border: 1px solid #ddd; text-align: center; background-color: #f3f3f3; @@ -348,13 +348,13 @@ dl.aligncenter { border-radius: 3px; } -.wp_caption img { +.wp-caption img { margin: 0; padding: 0; border: 0 none; } -.wp_caption_dd { +.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; padding: 0 4px 5px; diff --git a/wp-content/themes/default/style.css b/wp-content/themes/default/style.css index 7e42a2a92..2be7218cc 100644 --- a/wp-content/themes/default/style.css +++ b/wp-content/themes/default/style.css @@ -640,13 +640,13 @@ a img { /* Captions */ .aligncenter, -dl.aligncenter { +div.aligncenter { display: block; margin-left: auto; margin-right: auto; } -.wp_caption { +.wp-caption { border: 1px solid #ddd; text-align: center; background-color: #f3f3f3; @@ -658,13 +658,13 @@ dl.aligncenter { border-radius: 3px; } -.wp_caption img { +.wp-caption img { margin: 0; padding: 0; border: 0 none; } -.wp_caption_dd { +.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; padding: 0 4px 5px; diff --git a/wp-includes/media.php b/wp-includes/media.php index 7be0e50b0..b200b914a 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -350,12 +350,12 @@ function wp_get_attachment_image($attachment_id, $size='thumbnail', $icon = fals return $html; } -add_shortcode('wp_caption', 'wp_caption_shortcode'); +add_shortcode('wp_caption', 'img_caption_shortcode'); -function wp_caption_shortcode($attr, $content = null) { +function img_caption_shortcode($attr, $content = null) { // Allow plugins/themes to override the default caption template. - $output = apply_filters('wp_caption_shortcode', '', $attr, $content); + $output = apply_filters('img_caption_shortcode', '', $attr, $content); if ( $output != '' ) return $output; @@ -371,8 +371,8 @@ function wp_caption_shortcode($attr, $content = null) { if ( $id ) $id = 'id="' . $id . '" '; - return '
' - . '
' . $content . '
' . $caption . '
'; + return '
' + . $content . '

' . $caption . '

'; } add_shortcode('gallery', 'gallery_shortcode');