[wp-trac] [WordPress Trac] #14584: HTML entities in category and tag elements

WordPress Trac noreply at wordpress.org
Mon Jul 6 10:53:50 UTC 2020


#14584: HTML entities in category and tag elements
--------------------------+-----------------------
 Reporter:  lavamind      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Export        |     Version:  2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------
Changes (by earnjam):

 * keywords:  has-patch needs-testing => has-patch


Comment:

 Replying to [comment:6 ianmjones]:
 > The importer requires that the CDATA contain data in the same format
 that will be inserted into the database, which means html entity encoded
 characters are required.

 So I guess changing it would break the importer. In order to patch in
 core, we'd have to also update the importer plugin to account for this.

 This commented out line has been there since cats/tags were first included
 in exports. See #3403.

 Given how little impact this appears to have had in 14 years, I don't
 think we should change it. We could clean it up a bit by removing the
 commented out code and explain why they are not decoded, like
 [attachment:"14584.patch"] does. But if we do that, I would clarify the
 wording a bit that it's dependent on the importer.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/14584#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list