Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. Built from https://develop.svn.wordpress.org/trunk@45583 git-svn-id: http://core.svn.wordpress.org/trunk@45394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -307,13 +307,16 @@ $scripts_to_print = array( 'jquery' );
|
||||
|
||||
switch ( $step ) {
|
||||
case 0: // Step 0
|
||||
if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
|
||||
$scripts_to_print[] = 'language-chooser';
|
||||
display_header( 'language-chooser' );
|
||||
echo '<form id="setup" method="post" action="?step=1">';
|
||||
wp_install_language_form( $languages );
|
||||
echo '</form>';
|
||||
break;
|
||||
if ( wp_can_install_language_pack() && empty( $language ) ) {
|
||||
$languages = wp_get_available_translations();
|
||||
if ( $languages ) {
|
||||
$scripts_to_print[] = 'language-chooser';
|
||||
display_header( 'language-chooser' );
|
||||
echo '<form id="setup" method="post" action="?step=1">';
|
||||
wp_install_language_form( $languages );
|
||||
echo '</form>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Deliberately fall through if we can't reach the translations API.
|
||||
|
||||
Reference in New Issue
Block a user