[wp-trac] [WordPress Trac] #39854: REST API: Add gmt_offset to base /wp-json response

WordPress Trac noreply at wordpress.org
Mon Mar 27 12:33:01 UTC 2017


#39854: REST API: Add gmt_offset to base /wp-json response
--------------------------------------------------+-----------------------
 Reporter:  jnylen0                               |       Owner:  jnylen0
     Type:  enhancement                           |      Status:  closed
 Priority:  normal                                |   Milestone:  4.7.4
Component:  REST API                              |     Version:  4.7
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-major  |     Focuses:  rest-api
--------------------------------------------------+-----------------------

Comment (by swissspidy):

 @adamsilverstein I think you mean [40336] , not [40235]? I am not the one
 to thank for as I only did the backport.

 In my tests, `test_build_wp_api_client_fixtures` did not overwrite the
 `wp-api-generated.js` file. The test shouldn't need to be overwritten as
 it only prints out REST responses, which were appropriately adjusted in
 this ticket.

 As for fixture generation, see also #40041. It's a bit weird that the file
 gets updated by a single PHP unit test.

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


More information about the wp-trac mailing list