[wp-trac] [WordPress Trac] #42762: rest_{$this->post_type}_query filter wrong place

WordPress Trac noreply at wordpress.org
Thu Nov 30 18:39:43 UTC 2017


#42762: rest_{$this->post_type}_query filter wrong place
-------------------------+-----------------------------
 Reporter:  Krstarica    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:  4.9.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42762>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list