Changeset 1227
- Timestamp:
- 03/17/2009 10:43:24 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
bp-activity.php (modified) (2 diffs)
-
bp-blogs.php (modified) (1 diff)
-
bp-core.php (modified) (4 diffs)
-
bp-friends.php (modified) (1 diff)
-
bp-groups.php (modified) (2 diffs)
-
bp-messages.php (modified) (1 diff)
-
bp-xprofile.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r1225 r1227 160 160 if ( $bp->displayed_user->id ) { 161 161 /* Check to see if the current user has their activity table set up. If not, set them up. */ 162 if ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->activity->table_name_current_user . "%'") ||get_usermeta( $bp->displayed_user->id, 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION )162 if ( get_usermeta( $bp->displayed_user->id, 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION ) 163 163 bp_activity_user_install(); 164 164 } … … 166 166 if ( is_site_admin() && 1 == $current_blog->blog_id ) { 167 167 /* Check to see if the site wide activity table is set up. */ 168 if ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->activity->table_name_sitewide . "%'") ||get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION )168 if ( get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION ) 169 169 bp_activity_sitewide_install(); 170 170 } -
trunk/bp-blogs.php
r1225 r1227 120 120 if ( is_site_admin() ) { 121 121 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 122 if ( ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->blogs->table_name . "%'") ) || ( get_site_option('bp-blogs-db-version') < BP_BLOGS_DB_VERSION ))122 if ( get_site_option('bp-blogs-db-version') < BP_BLOGS_DB_VERSION ) 123 123 bp_blogs_install(); 124 124 } -
trunk/bp-core.php
r1225 r1227 225 225 if ( is_site_admin() ) { 226 226 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 227 if ( ( !$wpdb->get_var( "SHOW TABLES LIKE '%{$bp->core->table_name_notifications}%'" ) ) || ( get_site_option('bp-core-db-version') < BP_CORE_DB_VERSION ))227 if ( get_site_option('bp-core-db-version') < BP_CORE_DB_VERSION ) 228 228 bp_core_install(); 229 229 } … … 401 401 402 402 /** 403 * bp_core_remove_nav_item() 404 * 405 * Removes a navigation item from the navigation array used in BuddyPress themes. 406 * 407 * @package BuddyPress Core 408 * @param $parent_id The id of the parent navigation item. 409 * @param $slug The slug of the sub navigation item. 410 */ 411 function bp_core_remove_nav_item( $name ) { 412 global $bp; 413 414 foreach( (array) $bp->bp_nav as $item_key => $item_value ) { 415 if ( $item_value['name'] == $name ) { 416 unset( $bp->bp_nav[$item_key] ); 417 } 418 } 419 420 foreach( (array) $bp->bp_users_nav as $item_key => $item_value ) { 421 if ( $item_value['name'] == $name ) { 422 unset( $bp->bp_nav[$item_key] ); 423 } 424 } 425 } 426 427 /** 403 428 * bp_core_add_subnav_item() 404 429 * … … 407 432 * @package BuddyPress Core 408 433 * @param $parent_id The id of the parent navigation item. 409 * @param $ id A unique id forthe sub navigation item.434 * @param $slug The slug of the sub navigation item. 410 435 * @param $name The display name for the sub navigation item, e.g. 'Public' or 'Change Avatar' 411 436 * @param $link The url for the sub navigation item. … … 435 460 } 436 461 462 /** 463 * bp_core_remove_subnav_item() 464 * 465 * Removes a navigation item from the sub navigation array used in BuddyPress themes. 466 * 467 * @package BuddyPress Core 468 * @param $parent_id The id of the parent navigation item. 469 * @param $slug The slug of the sub navigation item. 470 */ 471 function bp_core_remove_subnav_item( $parent_id, $slug ) { 472 global $bp; 473 474 unset( $bp->bp_options_nav[$parent_id][$slug] ); 475 } 437 476 438 477 /** -
trunk/bp-friends.php
r1225 r1227 82 82 if ( is_site_admin() ) { 83 83 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 84 if ( ( !$wpdb->get_var( "SHOW TABLES LIKE '%{$bp->friends->table_name}%'") ) || ( get_site_option('bp-friends-db-version') < BP_FRIENDS_DB_VERSION ))84 if ( get_site_option('bp-friends-db-version') < BP_FRIENDS_DB_VERSION ) 85 85 friends_install(); 86 86 } -
trunk/bp-groups.php
r1225 r1227 161 161 if ( is_site_admin() ) { 162 162 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 163 if ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->groups->table_name . "%'") || ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ))163 if ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) 164 164 groups_install(); 165 165 166 if ( ( function_exists('bp_wire_install') && !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->groups->table_name_wire . "%'") ) || ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ))166 if ( function_exists('bp_wire_install') && get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) 167 167 groups_wire_install(); 168 168 } … … 1707 1707 } 1708 1708 1709 1710 1709 function groups_get_invites_for_group( $user_id, $group_id ) { 1711 1710 return BP_Groups_Group::get_invites( $user_id, $group_id ); -
trunk/bp-messages.php
r1225 r1227 133 133 if ( is_site_admin() ) { 134 134 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 135 if ( !$wpdb->get_var( "SHOW TABLES LIKE '%{$bp->messages->table_name_messages}%'" ) || ( get_site_option('bp-messages-db-version') < BP_MESSAGES_DB_VERSION ))135 if ( get_site_option('bp-messages-db-version') < BP_MESSAGES_DB_VERSION ) 136 136 messages_install(); 137 137 } -
trunk/bp-xprofile.php
r1225 r1227 198 198 199 199 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 200 if ( !$wpdb->get_var("SHOW TABLES LIKE '%{$bp->profile->table_name_groups}%'") || ( get_site_option('bp-xprofile-db-version') < BP_XPROFILE_DB_VERSION ))200 if ( get_site_option('bp-xprofile-db-version') < BP_XPROFILE_DB_VERSION ) 201 201 xprofile_install(); 202 202 203 if ( ( function_exists('bp_wire_install') && !$wpdb->get_var( "SHOW TABLES LIKE '%{$bp->profile->table_name_wire}%'" ) ) || ( get_site_option('bp-xprofile-db-version') < BP_XPROFILE_DB_VERSION ))203 if ( function_exists('bp_wire_install') && get_site_option('bp-xprofile-db-version') < BP_XPROFILE_DB_VERSION ) 204 204 xprofile_wire_install(); 205 205 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)