mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Escape caption in [gallery] output, props MattyRob, fixes #8763
git-svn-id: https://develop.svn.wordpress.org/trunk@11200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -684,7 +684,7 @@ function gallery_shortcode($attr) {
|
||||
if ( $captiontag && trim($attachment->post_excerpt) ) {
|
||||
$output .= "
|
||||
<{$captiontag} class='gallery-caption'>
|
||||
{$attachment->post_excerpt}
|
||||
" . wp_specialchars($attachment->post_excerpt) . "
|
||||
</{$captiontag}>";
|
||||
}
|
||||
$output .= "</{$itemtag}>";
|
||||
|
||||
Reference in New Issue
Block a user