[wp-trac] [WordPress Trac] #34730: Rename `register_api_field()` to `register_rest_field()`

WordPress Trac noreply at wordpress.org
Wed Nov 18 20:38:27 UTC 2015


#34730: Rename `register_api_field()` to `register_rest_field()`
------------------------------+--------------------------
 Reporter:  danielbachhuber   |       Owner:  johnbillion
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  REST API          |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------
Changes (by johnbillion):

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


Comment:

 In [changeset:"35687"]:
 {{{
 #!CommitTicketReference repository="" revision="35687"
 Remove `register_api_field()` from core. This is the only core function
 that utilises the `$wp_rest_additional_fields` global, and doesn't belong
 as part of the infrastructure.

 See https://github.com/WP-API/WP-API/pull/1748

 Fixes #34730
 }}}

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


More information about the wp-trac mailing list