Ticket #13406: 13406.patch
| File 13406.patch, 656 bytes (added by hakre, 3 years ago) |
|---|
-
wp-includes/ms-settings.php
48 48 $path = str_replace ( '/wp-admin/', '/', $path ); 49 49 $path = preg_replace( '|(/[a-z0-9-]+?/).*|', '$1', $path ); 50 50 51 $current_site = wpmu_current_site(); 51 $current_site = new StdClass(); 52 wpmu_current_site(); 52 53 if ( ! isset( $current_site->blog_id ) ) 53 54 $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 ) ); 54 55
