[wp-trac] [WordPress Trac] #33844: Add language chooser to wp-signup.php

WordPress Trac noreply at wordpress.org
Sat Sep 12 22:51:10 UTC 2015


#33844: Add language chooser to wp-signup.php
--------------------------------+-------------------------------------
 Reporter:  DrewAPicture        |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  4.4
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  has-patch needs-testing
  Focuses:  multisite           |
--------------------------------+-------------------------------------
 In [33920], we added the language chooser to site-new.php for choosing the
 language when creating a new site in the network admin.

 We should also make it possible to choose the language when registering a
 site via wp-signup.php.

 In the attached patch, there are two important aspects to note that differ
 from the site-new.php implementation:
 * Only already-installed languages are available in the drop-down
 (implementing when-needed installation would require loading the entire
 languages administration API otherwise)
 * It adds a filter on the available languages for this context and
 simultaneously makes it possible to disable the setting output by passing
 an empty array

 There is also logic to strip any not-installed languages before output.

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


More information about the wp-trac mailing list