Opened 4 years ago
Closed 4 years ago
#56116 closed defect (bug) (invalid)
Need escaping in wp-rest-posts-controller file
| Reported by: | priyankkpatel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | REST API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.