[wp-trac] [WordPress Trac] #12464: Text links are stripped from image captions
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 2 16:15:15 UTC 2010
#12464: Text links are stripped from image captions
--------------------------+-------------------------------------------------
Reporter: dnusim | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Gallery | Version: 2.9.2
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Changes (by simonlawrence):
* cc: simonlawrence (added)
Comment:
When you use the visual editor to add a link to the caption text it is
stripped out when saving but you can edit the caption attribute in the
HTML view and it will save.
I have found several people talking about it:
http://www.priceplow.com/wordpress-link-in-image-caption
http://www.transformationpowertools.com/wordpress/hyperlinks-in-wordpress-
image-captions
http://blogwip.com/images/adding-linked-captions-images-wordpress/
Looking through the code and it appears to be the "wpeditimage" TinyMCE
JavaScript plugin that is replacing all HTML tags in the contents of the
caption attribute:
{{{
h=h.replace(/<\S[^<>]*>/gi,"").replace(/'/g,"'").replace(/"/g,""");
}}}
from /wp-includes/js/tinymce/wp-tinymce.php
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12464#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list