diff --git a/wp-includes/media.php b/wp-includes/media.php index 484d7cece..917163d9a 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -684,7 +684,7 @@ function gallery_shortcode($attr) { if ( $captiontag && trim($attachment->post_excerpt) ) { $output .= " <{$captiontag} class='gallery-caption'> - " . wp_specialchars($attachment->post_excerpt) . " + " . wptexturize($attachment->post_excerpt) . " "; } $output .= "";