WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 9 months ago

#14584 new defect (bug)

HTML entities in category and tag elements

Reported by: lavamind Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 2.1
Component: Export Keywords: has-patch
Focuses: Cc:

Description

The script wp-admin/includes/export.php creates CDATA blocks for category and tag data which contain HTML entities. Normally, these characters should appear un-encoded in the CDATA blocks, see #4321.

I suspect this problem may have been considered at some point, but currently the line in question is commented out : http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/export.php?rev=9148#L102

The solution, I think, would be to replace that comment with html_entity_decode($str)

Attachments (2)

14584.diff (2.2 KB) - added by lavamind 4 years ago.
14584v2.diff (467 bytes) - added by c3mdigital 9 months ago.
Patch refresh

Download all attachments as: .zip

Change History (3)

lavamind4 years ago

c3mdigital9 months ago

Patch refresh

comment:1 c3mdigital9 months ago

  • Keywords has-patch added
  • Version changed from 3.0.1 to 2.1

Refreshing patch.

Note: See TracTickets for help on using tickets.