[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:26:21 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 johnbillion):

 Ah yes. Correction: the setting shouldn't be available if the site is not
 allowing languages to be installed (`wp_get_available_translations()`
 returns an empty result), for example via `DISALLOW_FILE_MODS`.

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


More information about the wp-trac mailing list