[wp-trac] [WordPress Trac] #39006: REST API: Language setting should not be present when no languages are available

WordPress Trac noreply at wordpress.org
Thu Dec 1 20:36:57 UTC 2016


#39006: REST API: Language setting should not be present when no languages are
available
--------------------------------+-----------------------
 Reporter:  johnbillion         |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.7
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  rest-api
--------------------------------+-----------------------

Comment (by jnylen0):

 Worth noting that we don't currently have a clean way of marking settings
 as read-only.  This is related to a larger question about granularity of
 the settings endpoint that hasn't really been addressed yet.  See also:

 - ticket:38490#comment:15
 - #38731

 An easier fix would be to return an error if an attempt is made to update
 the setting to an invalid value.

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


More information about the wp-trac mailing list