[wp-trac] [WordPress Trac] #11965: Constant BLOGID_CURRENT_SITE not working
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 21 13:52:58 UTC 2010
#11965: Constant BLOGID_CURRENT_SITE not working
--------------------------+-------------------------------------------------
Reporter: edir | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version: 2.9.1
Severity: normal | Keywords: wpmu
--------------------------+-------------------------------------------------
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.
WPMU 2.9.1.1
wpmu-settings.php:137
+ if( $path == '/' )
+ $path = $wpdb->get_var( $wpdb->prepare("SELECT path FROM
$wpdb->blogs WHERE blog_id = %d", BLOGID_CURRENT_SITE) );
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11965>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list