WordPress.org

Make WordPress Core

Ticket #13406: 13406.patch

File 13406.patch, 656 bytes (added by hakre, 5 years ago)
  • wp-includes/ms-settings.php

     
    4848        $path = str_replace ( '/wp-admin/', '/', $path ); 
    4949        $path = preg_replace( '|(/[a-z0-9-]+?/).*|', '$1', $path ); 
    5050 
    51         $current_site = wpmu_current_site(); 
     51        $current_site = new StdClass();  
     52        wpmu_current_site(); 
    5253        if ( ! isset( $current_site->blog_id ) ) 
    5354                $current_site->blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s", $current_site->domain, $current_site->path ) ); 
    5455