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

WordPress Trac noreply at wordpress.org
Mon Dec 5 01:42:56 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

Comment (by rmccue):

 Replying to [comment:3 jnylen0]:
 > > 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.

 `gmt_offset` is actually a bit of a strange setting; it can either be set
 (the manual timezone offsets in the timezone dropdown), or derived from
 the actual timezone. Likely, the settings endpoint should expose the raw
 value (either unset or the manual timezone offset), and the site info can
 expose the derived value (which will always have a value).

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

More information about the wp-trac mailing list