[wp-trac] [WordPress Trac] #36918: Multisite: Can't set en_US for language, when creating a new site

WordPress Trac noreply at wordpress.org
Mon May 23 10:24:02 UTC 2016


#36918: Multisite: Can't set en_US for language, when creating a new site
---------------------------------------+-----------------------------
 Reporter:  arkimedia                  |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  General                    |    Version:  4.5.2
 Severity:  normal                     |   Keywords:
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 Problem description:

 1. I have a multisite where default language is set to Finnish (fi) from
 the network settings, so that {{{get_site_option('WPLANG')}}} returns
 'fi'.

 2. I want to create a new site and use en_US as a language.

 3. If I choose "en_US" from the language chooser in site-new.php,
 {{{$_POST['WPLANG']}}} doesn't contain any language.

 4. Because {{{$_POST['WPLANG']}}} is empty, no language is passed to the
 wpmu_create_blog function.

 5. If no language is passed wpmu_create_blog function, it uses network
 default, which in this case is 'fi'.{{{add_option( 'WPLANG',
 get_site_option( 'WPLANG' ) );}}}

 This isn't a problem if the network default language is en_US, but causes
 problems in localized multisites.

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


More information about the wp-trac mailing list