[wp-trac] [WordPress Trac] #56116: Need escaping in wp-rest-posts-controller file

WordPress Trac noreply at wordpress.org
Thu Jun 30 19:35:28 UTC 2022


#56116: Need escaping in wp-rest-posts-controller file
---------------------------+----------------------
 Reporter:  priyankkpatel  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  REST API       |     Version:
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------
Changes (by TimothyBlynJacobs):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @priyankkpatel,

 Thanks for the ticket!

 However, WordPress Core does not escape it's translations. See
 https://core.trac.wordpress.org/ticket/30724#comment:10.

 Further, escaping in this location would be incorrect since escaping
 should be done late.

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


More information about the wp-trac mailing list