[wp-trac] [WordPress Trac] #29362: More development for wp_dropdown_languages()

WordPress Trac noreply at wordpress.org
Sun Oct 12 21:11:35 UTC 2014


#29362: More development for wp_dropdown_languages()
-------------------------------------+------------------------------
 Reporter:  alex-ye                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  I18N                     |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  needs-refresh has-patch  |     Focuses:
-------------------------------------+------------------------------

Comment (by khromov):

 I'd like to second a filter. I author the "English WordPress Admin"*
 plugin and the introduction of wp_dropdown_languages() has made it so that
 if you hook on the locale filter to change locale to "en_US", the dropdown
 will have English selected when the user visits options-general.php, so
 when the user saves the options, he will have changed his site language by
 mistake.

 It may not actually be right to filter the locale when using
 wp_dropdown_languages() at all, due to aformentioned issues with the
 settings form.

 * https://wordpress.org/plugins/english-wp-admin/

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


More information about the wp-trac mailing list