[wp-trac] [WordPress Trac] #56019: Add prepare_links method to WP_REST_Post_Types_Controller

WordPress Trac noreply at wordpress.org
Tue Jul 19 14:48:01 UTC 2022


#56019: Add prepare_links method to WP_REST_Post_Types_Controller
---------------------------------------------+---------------------------
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.1
Component:  REST API                         |     Version:  4.7
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:  rest-api
---------------------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53721" 53721]:
 {{{
 #!CommitTicketReference repository="" revision="53721"
 REST API: Add `prepare_links` method to `WP_REST_Post_Types_Controller`
 class.

 Move logic to from `prepare_item_for_response` to `prepare_links` method
 to bring `WP_REST_Post_Types_Controller` class inline with other REST API
 controllers.

 Props Spacedmonkey, timothyblynjacobs, dlh.
 Fixes #56019.
 }}}

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


More information about the wp-trac mailing list