[wp-trac] [WordPress Trac] #45220: register_rest_field() doesn't work when schema is empty

WordPress Trac noreply at wordpress.org
Mon Dec 17 01:41:14 UTC 2018


#45220: register_rest_field() doesn't work when schema is empty
------------------------------------------------+--------------------------
 Reporter:  Dudo                                |       Owner:
                                                |  danielbachhuber
     Type:  defect (bug)                        |      Status:  closed
 Priority:  normal                              |   Milestone:  5.0
Component:  REST API                            |     Version:  5.0
 Severity:  normal                              |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-5.0  |     Focuses:  rest-api
------------------------------------------------+--------------------------

Comment (by SergeyBiryukov):

 In [changeset:"44256" 44256]:
 {{{
 #!CommitTicketReference repository="" revision="44256"
 Tests: Replace use of `$this->server` with `rest_get_server()` in
 `test_get_additional_field_registration_null_schema()`.

 In [42724], `$this->server` was replaced with `rest_get_server()` for
 better memory recycling.

 [43908], from the 5.0 branch, was merged into trunk in [44254] and used
 the now unavailable `$this->server`.

 This updates the new test from the 5.0 branch to use the expected
 `rest_get_server()`.

 See #45220, #41641.
 }}}

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


More information about the wp-trac mailing list