Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#9468 closed defect (bug) (fixed)

Patch to avoid stripping images when using LiveJournal importer

Reported by: beaulebens's profile beaulebens Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7.1
Component: General Keywords: has-patch
Focuses: Cc:

Description

Some users have reported problems with the new LiveJournal importer stripping images out of their posts while importing.

Turns out that this is actually because of the force_balance_tags() function, which was being used to clean up imported content a bit. Removing that function means there is no code-level cleanup during import, so it's up to the user to have good HTML.

Applying this patch removes the function and means that the importer works more reliably with WPMU installations in particular.

I'm commenting it out rather than removing it completely as a reminder to people who might want to un-comment it when they import. Alternatively feel free to delete.

Attachments (1)

9468.diff (675 bytes) - added by beaulebens 16 years ago.

Download all attachments as: .zip

Change History (4)

@beaulebens
16 years ago

#1 @hakre
16 years ago

+1 it is always up to the user to have "good" html, WordPress did never properly sanitze for "good" html. I so no problem here.

#2 @hakre
16 years ago

so = see.

#3 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10880]) Don't force balance tags to avoid image stripping. Props beaulebens. fixes #9468

Note: See TracTickets for help on using tickets.