Opened 2 years ago
Closed 2 years ago
#56116 closed defect (bug) (invalid)
Need escaping in wp-rest-posts-controller file
Reported by: | priyankkpatel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | |
Focuses: | Cc: |
Description
in /wp-includes/rest-api/endpoints/class/class-wp-rest-posts-controller.php
file, need escaping on a couple of places.
Attaching patch for the same.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
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.