WordPress.org

Make WordPress Core

Changeset 28779


Ignore:
Timestamp:
06/19/14 04:36:29 (3 years ago)
Author:
nacin
Message:

Fix variable usage in new language install choices. see #28577.

File:
1 edited

Legend:

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

    r28774 r28779  
    101101    $user_table = ( $wpdb->get_var( $sql ) != null ); 
    102102 
    103     // Ensure that Blogs appear in search engines by default 
     103    // Ensure that Blogs appear in search engines by default. 
    104104    $blog_public = 1; 
    105     if ( ! empty( $_POST ) ) 
     105    if ( isset( $_POST['weblog_title'] ) ) { 
    106106        $blog_public = isset( $_POST['blog_public'] ); 
     107    } 
    107108 
    108109    $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; 
     
    252253        if ( ! empty( $_POST['language'] ) ) { 
    253254            $available_languages = get_available_languages(); 
    254             if ( isset( $available_languages[ $_POST['language'] ] ) ) { 
     255            if ( in_array( $_POST['language'], $available_languages ) ) { 
    255256                $loading_language = $_POST['language']; 
    256257                load_textdomain( 'default', WP_LANG_DIR . "/{$loading_language}.mo" ); 
Note: See TracChangeset for help on using the changeset viewer.