[wp-trac] [WordPress Trac] #44152: Comments "up" link does not cover custom post types and/or REST controllers

WordPress Trac noreply at wordpress.org
Sat Oct 24 13:19:05 UTC 2020


#44152: Comments "up" link does not cover custom post types and/or REST controllers
--------------------------------------+--------------------------------
 Reporter:  dsifford                  |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.6
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49299" 49299]:
 {{{
 #!CommitTicketReference repository="" revision="49299"
 REST API: Support generating comment up links to custom posts controllers.

 The comments controller now uses the `rest_get_route_for_post` function
 introduced in WordPress 5.5 to generate the link. This function is
 filterable to allow for custom controllers to properly define their REST
 API route.

 Props dsifford, TimothyBlynJacobs.
 Fixes #44152.
 }}}

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


More information about the wp-trac mailing list