[wp-trac] [WordPress Trac] #56020: Add prepare_links method to WP_REST_Taxonomies_Controller

WordPress Trac noreply at wordpress.org
Tue Jul 19 14:52:26 UTC 2022


#56020: Add prepare_links method to WP_REST_Taxonomies_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:"53722" 53722]:
 {{{
 #!CommitTicketReference repository="" revision="53722"
 REST API: Add `prepare_links` method to `WP_REST_Taxonomies_Controller`
 class.

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

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

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


More information about the wp-trac mailing list