Opened 16 years ago
Closed 15 years ago
#6630 closed defect (bug) (worksforme)
Link targets stripped from inserted image code
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (4)
Note: See
TracTickets for help on using
tickets.
I tried this in trunk, and it worked fine. It uses single quotes still (which are completely valid), but it keeps the link in tact. Can you try this using trunk to make sure it works as expected?