[wp-trac] [WordPress Trac] #50692: WordPress v5.4.2 Escaping Problem in the Edit Media Screen

WordPress Trac noreply at wordpress.org
Tue Jan 31 13:35:59 UTC 2023


#50692: WordPress v5.4.2 Escaping Problem in the Edit Media Screen
---------------------------+-----------------------------
 Reporter:  rafaelcardero  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Media          |     Version:  5.4.2
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  administration
---------------------------+-----------------------------

Comment (by Mista-Flo):

 It's inside `format_to_edit` function in `wp-includes/formating.php`, it
 checks `rich_text` value to escape or not the textarea.

 I'm not 100% sure what to do without having side effects on other editor
 fields.

 I just came up with a quick patch to start the conversation, but again,
 not tested in different scenario hence not sure it's a good fix.

 Would like to get developer feedbacks here, not sure how it works for
 other editor fields

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


More information about the wp-trac mailing list