[wp-trac] [WordPress Trac] #39072: Add gmt_offset as a REST API setting

WordPress Trac noreply at wordpress.org
Sun Dec 4 20:40:11 UTC 2016


#39072: Add gmt_offset as a REST API setting
----------------------------------------+------------------------------
 Reporter:  jshreve                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+------------------------------
Changes (by jnylen0):

 * keywords:   => has-patch needs-unit-tests


Comment:

 > currently we intend the settings endpoint to be used only for settings
 that can be updated

 My mistake about this part - sitting next to @jshreve and he pointed out
 that this is possible to update via wp-admin.

 This ticket also made me think of the general need to expose `gmt_offset`
 and other data to API clients that may not have `manage_options`
 capability.  For Quick Draft this is currently done via
 `wp_localize_script` which isn't a great solution
 (https://core.trac.wordpress.org/ticket/38342#comment:48).

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


More information about the wp-trac mailing list