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
This commit is contained in:
parent
701d5f8bad
commit
29252dc3d1
|
@ -684,7 +684,7 @@ function gallery_shortcode($attr) {
|
||||||
if ( $captiontag && trim($attachment->post_excerpt) ) {
|
if ( $captiontag && trim($attachment->post_excerpt) ) {
|
||||||
$output .= "
|
$output .= "
|
||||||
<{$captiontag} class='gallery-caption'>
|
<{$captiontag} class='gallery-caption'>
|
||||||
" . wp_specialchars($attachment->post_excerpt) . "
|
" . wptexturize($attachment->post_excerpt) . "
|
||||||
</{$captiontag}>";
|
</{$captiontag}>";
|
||||||
}
|
}
|
||||||
$output .= "</{$itemtag}>";
|
$output .= "</{$itemtag}>";
|
||||||
|
|
Loading…
Reference in New Issue