[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 16:12:59 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              |   Keywords:  needs-patch
  Focuses:  rest-api            |
--------------------------------+-------------------------
 In `register_initial_settings()`, the `WPLANG` setting is always present
 (and always available to the REST API), but on the General Settings screen
 this field is not available if there are no languages installed on the
 site.

 This field should not be registered as an editable setting in the REST API
 if there are no languages installed on the site, however it makes sense
 for the setting to be available as read-only, even if it only returns
 `en_US` in this situation.

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


More information about the wp-trac mailing list