Changeset 3947 for trunk/bp-core/bp-core-loader.php
- Timestamp:
- 01/27/2011 06:42:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-loader.php
r3944 r3947 35 35 36 36 function _setup_globals() { 37 global $bp, $bp_pages; 37 global $bp; 38 39 /** Database **********************************************************/ 38 40 39 41 // Get the base database prefix 40 $bp->table_prefix = bp_core_get_table_prefix(); 42 if ( empty( $bp->table_prefix ) ) 43 $bp->table_prefix = bp_core_get_table_prefix(); 41 44 42 45 // The domain for the root of the site where the main blog resides 43 $bp->root_domain = bp_core_get_root_domain(); 46 if ( empty( $bp->root_domain ) ) 47 $bp->root_domain = bp_core_get_root_domain(); 48 49 // Fetches all of the core BuddyPress settings in one fell swoop 50 if ( empty( $bp->site_options ) ) 51 $bp->site_options = bp_core_get_site_options(); 44 52 45 53 // The names of the core WordPress pages used to display BuddyPress content 46 $bp->pages = $bp_pages; 54 if ( empty( $bp->pages ) ) 55 $bp->pages = bp_core_get_page_names(); 47 56 48 /** Component and Action ********************************************** ****/57 /** Component and Action **********************************************/ 49 58 50 59 // Used for overriding the 2nd level navigation menu so it can be used to … … 63 72 } 64 73 65 // Fetches all of the core BuddyPress settings in one fell swoop66 $bp->site_options = bp_core_get_site_options();67 68 74 // Sets up the array container for the component navigation rendered 69 75 // by bp_get_nav() … … 78 84 $bp->active_components = array(); 79 85 80 /** Basic current user data ******************************************* ****/86 /** Basic current user data *******************************************/ 81 87 82 88 // Logged in user is the 'current_user' … … 86 92 $bp->loggedin_user->id = $current_user->ID; 87 93 88 /** Avatars *********************************************************** ****/94 /** Avatars ***********************************************************/ 89 95 90 96 // Fetches the default Gravatar image to use if the user/group/blog has no avatar or gravatar
Note: See TracChangeset
for help on using the changeset viewer.