#50529 closed enhancement (fixed)
REST API: Update post search handler to use rest_get_route_for_post()
| Reported by: | TimothyBlynJacobs | Owned by: | TimothyBlynJacobs |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | REST API | Version: | 5.5 |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
Description (last modified by )
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.
Change History (10)
#2
@
6 years ago
- Summary REST API: Update post search handler to use → REST API: Update post search handler to use rest_get_route_for_post()
This ticket was mentioned in Slack in #core by timothybjacobs. View the logs.
6 years ago
This ticket was mentioned in PR #391 on WordPress/wordpress-develop by ravatparmar.
6 years ago
#5
- Keywords has-patch added
TimothyBJacobs commented on PR #391:
6 years ago
#6
Thanks for working on that @ravatparmar! We also need to update where we call detect_rest_item_route in the post search handler to use the new function directly.
ravatparmar commented on PR #391:
6 years ago
#8
Yes sure @TimothyBJacobs,
will update once done.
TimothyBJacobs commented on PR #391:
6 years ago
#9
Hi @ravatparmar,
Sorry, I forgot to close this out. I made that change so that we had time to land the feature before Beta 1. Thanks for your work on this!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
https://core.trac.wordpress.org/ticket/50529