Fix undefined index "subdomain_install" in wp-admin/network.php. Props cyberhobo, SergeyBiryukov. Fixes #17697.
git-svn-id: https://develop.svn.wordpress.org/trunk@18692 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d98a9d0b0c
commit
8a96846c8d
@ -523,7 +523,7 @@ if ( $_POST ) {
|
||||
// create network tables
|
||||
install_network();
|
||||
$hostname = get_clean_basedomain();
|
||||
$subdomain_install = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
|
||||
$subdomain_install = allow_subdomain_install() ? !empty( $_POST['subdomain_install'] ) : false;
|
||||
if ( ! network_domain_check() ) {
|
||||
$result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), stripslashes( $_POST['sitename'] ), $base, $subdomain_install );
|
||||
if ( is_wp_error( $result ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user