Ticket #3528: 3528.001.diff
| File 3528.001.diff, 1.5 KB (added by , 15 years ago) |
|---|
-
bp-core/bp-core-component.php
192 192 */ 193 193 function setup_actions() { 194 194 195 // Register post types195 // Setup globals 196 196 add_action( 'bp_setup_globals', array ( $this, 'setup_globals' ), 10 ); 197 197 198 198 // Include required files. Called early to ensure that BP core … … 202 202 // extending this base class. 203 203 add_action( 'bp_include', array ( $this, 'includes' ), 8 ); 204 204 205 // Register post types205 // Setup navigation 206 206 add_action( 'bp_setup_nav', array ( $this, 'setup_nav' ), 10 ); 207 207 208 // Register post types208 // Setup WP Admin Bar menus 209 209 add_action( 'bp_setup_admin_bar', array ( $this, 'setup_admin_bar' ), 10 ); 210 210 211 // Register post types211 // Setup component title 212 212 add_action( 'bp_setup_title', array ( $this, 'setup_title' ), 10 ); 213 213 214 214 // Register post types -
bp-members/bp-members-loader.php
60 60 61 61 // Define a slug, if necessary 62 62 if ( !defined( 'BP_MEMBERS_SLUG' ) ) 63 define( 'BP_MEMBERS_SLUG', 'members');63 define( 'BP_MEMBERS_SLUG', $this->id ); 64 64 65 65 $globals = array( 66 66 'path' => BP_PLUGIN_DIR,