[wp-trac] [WordPress Trac] #53656: Not possible to get a post type's REST API namespace if modified

WordPress Trac noreply at wordpress.org
Mon Dec 13 15:19:17 UTC 2021


#53656: Not possible to get a post type's REST API namespace if modified
--------------------------------------+---------------------------
 Reporter:  swissspidy                |       Owner:  spacedmonkey
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.9
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+---------------------------

Comment (by spacedmonkey):

 In [changeset:"52363" 52363]:
 {{{
 #!CommitTicketReference repository="" revision="52363"
 REST API: Ensure that the parent link, uses the rest_get_route_for_post
 function.

 In [51962] the `rest_get_route_for_post` function was implemented in all
 places where link to a post's REST API endpoint is needed. However in this
 commit, the up link, which links to the parent post of the current object,
 did not use this function.

 Props Spacedmonkey, SergeyBiryukov.
 Fixes #53656.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53656#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list