Constant BLOGID_CURRENT_SITE not working
|Reported by:||edir||Owned by:|
When I tried to set the constant BLOGID_CURRENT_SITE, it didn't work and I found in the script a missing thing. This was the patch I did to make it work.
+ if( $path == '/' )
+ $path = $wpdb->get_var( $wpdb->prepare("SELECT path FROM $wpdb->blogs WHERE blog_id = %d", BLOGID_CURRENT_SITE) );