WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (3 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r45403 r45583  
    308308switch ( $step ) {
    309309    case 0: // Step 0
    310         if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
    311             $scripts_to_print[] = 'language-chooser';
    312             display_header( 'language-chooser' );
    313             echo '<form id="setup" method="post" action="?step=1">';
    314             wp_install_language_form( $languages );
    315             echo '</form>';
    316             break;
     310        if ( wp_can_install_language_pack() && empty( $language ) ) {
     311            $languages = wp_get_available_translations();
     312            if ( $languages ) {
     313                $scripts_to_print[] = 'language-chooser';
     314                display_header( 'language-chooser' );
     315                echo '<form id="setup" method="post" action="?step=1">';
     316                wp_install_language_form( $languages );
     317                echo '</form>';
     318                break;
     319            }
    317320        }
    318321
Note: See TracChangeset for help on using the changeset viewer.