[wp-trac] [WordPress Trac] #6630: Link targets stripped from
inserted image code
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 7 11:58:42 GMT 2008
#6630: Link targets stripped from inserted image code
----------------------------+-----------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: Administration | Version: 2.5
Severity: normal | Keywords: needs-patch
----------------------------+-----------------------------------------------
Disable TinyMCE. Use the uploader to upload an image. Insert the image
into the post with it linking to the fullsize. You'll get some HTML like
this:
{{{
<a href='http://site.com/wp-content/uploads/image.jpg'><img
src="http://site.com/wp-content/...
}}}
When you view the post, the HREF and it's value are stripped. Switch those
single quotes out to double ones and it shows it just fine.
The image uploader should be using double quotes anyway (they're more
"correct" and look better IMO) and kses (I assume) should be fixed to not
strip them.
--
Ticket URL: <http://trac.wordpress.org/ticket/6630>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list