[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:24:03 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 ocean90):
> but on the General Settings screen this field is not available if there
are no languages installed on the site.
That doesn't sound right. It's available when there are language installed
(`get_available_languages()`) '''or''' when the translations API returns
translations (`wp_get_available_translations()`). Otherwise the on-the-fly
installation of new translations wouldn't work, see [30335].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39006#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list