From 457e211d2247876c9d2edeec7b39861b04be5ce7 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 14 May 2009 23:15:28 +0000 Subject: [PATCH] Escape the captions in the gallery with wptexturize() instead of wp_specialchars(), props Denis-de-Bernardy, fixes #8763 git-svn-id: http://svn.automattic.com/wordpress/trunk@11336 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= "";