Ticket #3418: update_core_actions.patch
File update_core_actions.patch, 1.4 KB (added by , 14 years ago) |
---|
-
bp-core-component.php
136 136 $bp->loaded_components[$this->slug] = $this->id; 137 137 138 138 // Call action 139 do_action( 'bp_' . $this->id . ' setup_globals' );139 do_action( 'bp_' . $this->id . '_setup_globals' ); 140 140 } 141 141 142 142 /** … … 169 169 } 170 170 171 171 // Call action 172 do_action( 'bp_' . $this->id . ' includes' );172 do_action( 'bp_' . $this->id . '_includes' ); 173 173 } 174 174 175 175 /** … … 213 213 add_action( 'bp_generate_rewrite_rules', array ( $this, 'generate_rewrite_rules' ), 10 ); 214 214 215 215 // Additional actions can be attached here 216 do_action( 'bp_' . $this->id . ' setup_actions' );216 do_action( 'bp_' . $this->id . '_setup_actions' ); 217 217 } 218 218 219 219 /** … … 237 237 } 238 238 239 239 // Call action 240 do_action( 'bp_' . $this->id . ' setup_nav' );240 do_action( 'bp_' . $this->id . '_setup_nav' ); 241 241 } 242 242 243 243 /** … … 271 271 } 272 272 273 273 // Call action 274 do_action( 'bp_' . $this->id . ' setup_admin_bar' );274 do_action( 'bp_' . $this->id . '_setup_admin_bar' ); 275 275 } 276 276 277 277 /** … … 282 282 * @uses do_action() Calls 'bp_{@link bp_Component::name}setup_title' 283 283 */ 284 284 function setup_title( ) { 285 do_action( 'bp_' . $this->id . ' setup_title' );285 do_action( 'bp_' . $this->id . '_setup_title' ); 286 286 } 287 287 288 288 /**