[wp-trac] [WordPress Trac] #39673: wp_dropdown_languages() shows wrong list of installed languages, when 'languages' is empty

WordPress Trac noreply at wordpress.org
Tue Jan 24 08:47:42 UTC 2017


#39673: wp_dropdown_languages() shows wrong list of installed languages, when
'languages' is empty
-------------------------+-----------------------------
 Reporter:  lhrng        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  I18N         |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 [https://core.trac.wordpress.org/browser/tags/4.7.1/src/wp-
 includes/l10n.php#L1133 wp_dropdown_languages()] shows wrong list of
 installed languages, when 'languages' is empty. That might be
 intentionally, but is still very confusing, because the values shown in
 the dropdown are wrong.

 Improvement:
 {{{#!php

         if ( empty( $args['languages'] ) ) {
                 $args['languages'] = get_available_languages();
         }


 }}}

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


More information about the wp-trac mailing list