[wp-trac] [WordPress Trac] #50529: REST API: Update post search handler to use

WordPress Trac noreply at wordpress.org
Thu Jul 2 05:58:49 UTC 2020


#50529: REST API: Update post search handler to use
-------------------------------+----------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Future Release
Component:  REST API           |    Version:  trunk
 Severity:  normal             |   Keywords:  good-first-bug
  Focuses:                     |
-------------------------------+----------------------------
 In [48273] the "rest_get_route_for_post" function was introduced. This
 simplifies determining the REST API route for any given post object. We
 should update the `WP_REST_Post_Search_Handler` to use that function
 instead of `detect_rest_item_route` method.

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


More information about the wp-trac mailing list