Ticket #2176: 2176.01.patch
| File 2176.01.patch, 1.9 KB (added by , 14 years ago) |
|---|
-
includes/extend/buddypress/activity.php
class BBP_BuddyPress_Activity { 235 235 * @uses bp_activity_set_action() 236 236 */ 237 237 public function register_activity_actions() { 238 // Sitewide activity stream items 238 239 bp_activity_set_action( $this->component, $this->topic_create, __( 'New topic created', 'bbpress' ) ); 239 240 bp_activity_set_action( $this->component, $this->reply_create, __( 'New reply created', 'bbpress' ) ); 241 242 // Group forum activity stream items 243 if ( bp_is_active( 'groups' ) ) { 244 bp_activity_set_action( 245 buddypress()->groups->id, 246 $this->topic_create, 247 __( 'New topic created', 'bbpress' ) 248 ); 249 250 bp_activity_set_action( 251 buddypress()->groups->id, 252 $this->reply_create, 253 __( 'New reply created', 'bbpress' ) 254 ); 255 } 240 256 } 241 257 242 258 /** … … class BBP_BuddyPress_Activity { 500 516 if ( $activity_id = $this->get_activity_id( $topic_id ) ) 501 517 return bp_activity_delete( array( 'id' => $activity_id ) ); 502 518 503 return false; 519 return false; 504 520 } 505 521 506 522 /** … … class BBP_BuddyPress_Activity { 651 667 if ( $activity_id = $this->get_activity_id( $reply_id ) ) 652 668 return bp_activity_delete( array( 'id' => $activity_id ) ); 653 669 654 return false; 670 return false; 655 671 } 656 672 657 673 /** -
includes/extend/buddypress/loader.php
class BBP_Forums_Component extends BP_Component { 134 134 public function setup_actions() { 135 135 136 136 // Setup the components 137 add_action( 'bp_init', array( $this, 'setup_components' ) );137 add_action( 'bp_init', array( $this, 'setup_components' ), 7 ); 138 138 139 139 parent::setup_actions(); 140 140 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)