Switch to a CSS comment in gallery_shortcode() to avoid breaking markup when the shortcode is used inside an HTML comment. props mark-k, aaroncampbell. fixes #23787.
git-svn-id: https://develop.svn.wordpress.org/trunk@24329 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
23514efe8a
commit
2bb8434469
@ -770,8 +770,8 @@ function gallery_shortcode($attr) {
|
||||
#{$selector} .gallery-caption {
|
||||
margin-left: 0;
|
||||
}
|
||||
</style>
|
||||
<!-- see gallery_shortcode() in wp-includes/media.php -->";
|
||||
/* see gallery_shortcode() in wp-includes/media.php */
|
||||
</style>";
|
||||
$size_class = sanitize_html_class( $size );
|
||||
$gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
|
||||
$output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
|
||||
|
Loading…
Reference in New Issue
Block a user