Changeset 1250 for trunk/bp-core.php
- Timestamp:
- 03/25/2009 04:01:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1245 r1250 35 35 require ( 'bp-core/bp-core-signup.php' ); 36 36 require ( 'bp-core/bp-core-activation.php' ); 37 require ( 'bp-core/directories/bp-core-directory-members.php' );38 37 39 38 /* Define the slug for member pages and the members directory (e.g. domain.com/[members] ) */ … … 75 74 global $displayed_user_id; 76 75 global $action_variables; 76 77 $current_user = wp_get_current_user(); 77 78 78 79 /* The domain for the root of the site where the main blog resides */ … … 147 148 $bp->current_component = $bp->default_component; 148 149 } 149 add_action( ' wp', 'bp_core_setup_globals', 1);150 add_action( 'plugins_loaded', 'bp_core_setup_globals', 3 ); 150 151 add_action( '_admin_menu', 'bp_core_setup_globals', 1 ); // must be _admin_menu hook. 151 152 … … 158 159 bp_core_add_root_component( HOME_BLOG_SLUG ); 159 160 } 160 add_action( 'plugins_loaded', 'bp_core_setup_root_components' );161 add_action( 'plugins_loaded', 'bp_core_setup_root_components', 1 ); 161 162 162 163 function bp_core_setup_session() { … … 305 306 add_action( 'wp', 'bp_core_setup_nav', 2 ); 306 307 add_action( 'admin_menu', 'bp_core_setup_nav', 2 ); 308 309 function bp_core_directory_members() { 310 global $bp; 311 312 if ( !is_home() && is_null( $bp->displayed_user->id ) && $bp->current_component == $bp->default_component ) { 313 $bp->is_directory = true; 314 $bp->current_component = false; 315 316 wp_enqueue_script( 'bp-core-directory-members', WPMU_PLUGIN_URL . '/bp-core/js/directory-members.js', array( 'jquery', 'jquery-livequery-pack' ) ); 317 bp_core_load_template( 'directories/members/index' ); 318 } 319 } 320 add_action( 'wp', 'bp_core_directory_members', 5 ); 307 321 308 322 /** … … 1167 1181 */ 1168 1182 function bp_core_referrer() { 1169 $referer = explode( '/', $_SERVER['HTTP_REFERER']);1183 $referer = explode( '/', wp_get_referer() ); 1170 1184 unset( $referer[0], $referer[1], $referer[2] ); 1171 1185 return implode( '/', $referer ); … … 1342 1356 global $wpdb; 1343 1357 ?> 1344 <!-- Generated in <?php timer_stop(1); ?> seconds. -->1358 <!-- Generated in <?php timer_stop(1); ?> seconds. <?php echo $wpdb->num_queries; ?> queries. --> 1345 1359 <?php 1346 1360 }
Note: See TracChangeset
for help on using the changeset viewer.