Changeset 1267
- Timestamp:
- 03/26/2009 03:11:09 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1262 r1267 17 17 if ( file_exists( WPMU_PLUGIN_DIR . '/bp-custom.php' ) ) 18 18 require( WPMU_PLUGIN_DIR . '/bp-custom.php' ); 19 20 /* Define on which blog ID BuddyPress should run */ 21 define( 'BP_ROOT_BLOG', apply_filters( 'bp_root_blog', 1 ) ); 19 22 20 23 /* Load the language file */ … … 357 360 */ 358 361 function bp_core_get_root_domain() { 359 switch_to_blog( 1);362 switch_to_blog(BP_ROOT_BLOG); 360 363 $domain = site_url(); 361 364 restore_current_blog(); … … 659 662 660 663 if ( $uid == $userdata->ID ) 661 return 'You';664 return __( 'You', 'buddypress' ); 662 665 663 666 if ( !$ud = get_userdata($uid) ) … … 1090 1093 */ 1091 1094 function bp_core_get_site_path() { 1092 global $ wpdb;1093 1094 return $ wpdb->get_var( $wpdb->prepare( "SELECT path FROM {$wpdb->base_prefix}site WHERE id = 1") );1095 global $current_site; 1096 1097 return $current_site->path; 1095 1098 } 1096 1099 -
trunk/bp-core/bp-core-catchuri.php
r1254 r1267 34 34 35 35 /* Only catch URI's on the root blog */ 36 if ( 1!= (int) $current_blog->blog_id )36 if ( BP_ROOT_BLOG != (int) $current_blog->blog_id ) 37 37 return false; 38 38
Note: See TracChangeset
for help on using the changeset viewer.