Opened 9 years ago
Closed 6 years ago
#42762 closed enhancement (fixed)
rest_{$this->post_type}_query filter wrong place
| Reported by: | Krstarica | Owned by: | TimothyBlynJacobs |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7 |
| Component: | REST API | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch early |
| Cc: | Focuses: |
Description
Taxonomies are added after rest_{$this->post_type}_query filter takes place, making impossible to alter the query completely.
It would be better to apply filter right before new WP_Query() in class-wp-rest-posts-controller.php:290.
Attachments (1)
Change History (8)
#1
@
7 years ago
- Keywords has-patch added
- Milestone Awaiting Review → Future Release
- Version 4.9.1 → 4.7
#2
@
6 years ago
- Keywords early added
- Milestone Future Release → 5.7
- Owner set to
- Status new → assigned
This ticket was mentioned in Slack in #core by metalandcoffee. View the logs.
6 years ago
This ticket was mentioned in PR #849 on WordPress/wordpress-develop by TimothyBJacobs.
6 years ago
#6
- Keywords needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/42762
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
AFAICT, this was introduced like that in https://github.com/WP-API/WP-API/pull/2287
I think this can be fixed safely.