Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#6630 closed defect (bug) (worksforme)

Link targets stripped from inserted image code

Reported by: viper007bond's profile Viper007Bond 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)

#1 @AaronCampbell
16 years ago

  • Keywords reporter-feedback added; needs-patch removed

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?

#2 @Viper007Bond
16 years ago

Works fine on my localhost trunk, but I get an HTTP error AJAX response for /branches/2.5, so I can't test on 2.5.1.

My real blog, which this error occurred on, is running 2.5 + a day (needed an RSS bugfix).

#3 @ryan
15 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

#4 @mrmist
15 years ago

  • Keywords reporter-feedback removed
  • Milestone 2.9 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing this off as worksforme (Tested ok against 2.7.)

Note: See TracTickets for help on using tickets.