#50529 closed enhancement (fixed)
REST API: Update post search handler to use rest_get_route_for_post()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | REST API | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
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
@
3 years ago
- Summary changed from REST API: Update post search handler to use to 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.
3 years ago
This ticket was mentioned in PR #391 on WordPress/wordpress-develop by ravatparmar.
3 years ago
#5
- Keywords has-patch added
TimothyBJacobs commented on PR #391:
3 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.
#7
@
3 years ago
- Owner set to TimothyBlynJacobs
- Resolution set to fixed
- Status changed from new to closed
In 48381:
ravatparmar commented on PR #391:
3 years ago
#8
Yes sure @TimothyBJacobs,
will update once done.
TimothyBJacobs commented on PR #391:
3 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!
https://core.trac.wordpress.org/ticket/50529