[wp-trac] [WordPress Trac] #23787: Gallery displayed even when the gallery shortcode is inside an HTML comment
WordPress Trac
noreply at wordpress.org
Fri Mar 15 14:05:12 UTC 2013
#23787: Gallery displayed even when the gallery shortcode is inside an HTML comment
-----------------------------+--------------------------
Reporter: mark-k | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Gallery
Version: 3.4 | Severity: normal
Keywords: |
-----------------------------+--------------------------
The gallery shortcode emits HTML comment which cause HTML to break when
the shortcode is inside a comment as HTML doesn't support nested comments
Adding the following in the text editor
<!-- [gallery ids="423,424,202,155,148,150"] -->
generates the following HTML
{{{
<!--
<style type='text/css'>
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: right;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
</style>
<!-- see gallery_shortcode() in wp-includes/media.php -->
...
-->
}}}
related #23786
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23787>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list