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
This commit is contained in:
parent
a1d5fbaec2
commit
457e211d22
|
@ -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) . "
|
||||
</{$captiontag}>";
|
||||
}
|
||||
$output .= "</{$itemtag}>";
|
||||
|
|
Loading…
Reference in New Issue