WordPress.org

Make WordPress Core

Ticket #15620: 15620.diff

File 15620.diff, 514 bytes (added by scribu, 5 years ago)
  • wp-admin/network.php

     
    307307        global $base, $wpdb; 
    308308        $hostname = get_clean_basedomain(); 
    309309 
     310        if ( is_null( $base ) ) 
     311                $base = trailingslashit( stripslashes( dirname( dirname( $_SERVER['SCRIPT_NAME'] ) ) ) ); 
     312 
    310313        // Wildcard DNS message. 
    311314        if ( is_wp_error( $errors ) ) 
    312315                echo '<div class="error">' . $errors->get_error_message() . '</div>';