Make WordPress Core

Changeset 29516


Ignore:
Timestamp:
08/17/2014 01:59:10 PM (10 years ago)
Author:
johnbillion
Message:

Avoid a PHP notice if you manually navigate to /wp-admin/install.php?step=2. See #28577.

File:
1 edited

Legend:

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

    r29206 r29516  
    210210        break;
    211211    case 2:
    212         $loaded_language = wp_install_load_language( $_REQUEST['language'] );
     212        if ( !empty( $_REQUEST['language'] ) ) {
     213            $loaded_language = wp_install_load_language( $_REQUEST['language'] );
     214        } else {
     215            $loaded_language = 'en_US';
     216        }
    213217
    214218        if ( ! empty( $wpdb->error ) )
Note: See TracChangeset for help on using the changeset viewer.