[wp-trac] [WordPress Trac] #16831: Commenting images in the Page or Post text-editor will break the page
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 11 03:16:38 UTC 2011
#16831: Commenting images in the Page or Post text-editor will break the page
--------------------------+-----------------------------
Reporter: jroakes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.1
Severity: normal | Keywords:
--------------------------+-----------------------------
If you add <!-- --> around an image as in:
{{{
<!-- <a href="http://site.com/wp-content/uploads/2011/02/ico-mega-
mail.png"><img src="http://site.com/wp-content/uploads/2011/02/ico-mega-
mail.png" alt="" title="ico-mega-mail" width="40" height="35"
class="alignnone size-full wp-image-73" /></a>-->
}}}
in the editor of the edit post/page screens using "html" mode the
commenting is not handled correctly on the front-end. When the_content()
is called the <!-- part is left in and the --> part is stripped
effectively commenting all of you page from the <!-- to the next time you
have commenting in your template file. I have tested in 3.0 and a new
installation of 3.1.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16831>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list