Set base if we return to network step 2. props scribu, fixes #15620.

git-svn-id: https://develop.svn.wordpress.org/trunk@17323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-16 21:50:45 +00:00
parent 2b4674a3b4
commit 9fd728dc4e

View File

@ -307,6 +307,9 @@ function network_step2( $errors = false ) {
global $base, $wpdb;
$hostname = get_clean_basedomain();
if ( ! isset( $base ) )
$base = trailingslashit( stripslashes( dirname( dirname( $_SERVER['SCRIPT_NAME'] ) ) ) );
// Wildcard DNS message.
if ( is_wp_error( $errors ) )
echo '<div class="error">' . $errors->get_error_message() . '</div>';