Make WordPress Core


Ignore:
Timestamp:
09/16/2011 09:20:43 PM (13 years ago)
Author:
duck_
Message:

Fix undefined index "subdomain_install" in wp-admin/network.php. Props cyberhobo, SergeyBiryukov. Fixes #17697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r18492 r18692  
    524524    install_network();
    525525    $hostname = get_clean_basedomain();
    526     $subdomain_install = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
     526    $subdomain_install = allow_subdomain_install() ? !empty( $_POST['subdomain_install'] ) : false;
    527527    if ( ! network_domain_check() ) {
    528528        $result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), stripslashes( $_POST['sitename'] ), $base, $subdomain_install );
Note: See TracChangeset for help on using the changeset viewer.