From 29252dc3d19c1dedcff8fd167087a152229e0d11 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@11336 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 484d7cecea..917163d9a1 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 .= "";