Changeset 11763 for trunk/src/bp-groups/bp-groups-activity.php
- Timestamp:
- 12/08/2017 12:22:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-activity.php
r11557 r11763 54 54 array( 'activity', 'group', 'member', 'member_groups' ) 55 55 ); 56 57 // These actions are for the legacy forums58 // Since the bbPress plugin also shares the same 'forums' identifier, we also59 // check for the legacy forums loader class to be extra cautious.60 if ( bp_is_active( 'forums' ) && class_exists( 'BP_Forums_Component' ) ) {61 bp_activity_set_action(62 $bp->groups->id,63 'new_forum_topic',64 __( 'New group forum topic', 'buddypress' ),65 false,66 __( 'Forum Topics', 'buddypress' ),67 array( 'activity', 'group', 'member', 'member_groups' )68 );69 70 bp_activity_set_action(71 $bp->groups->id,72 'new_forum_post',73 __( 'New group forum post', 'buddypress' ),74 false,75 __( 'Forum Replies', 'buddypress' ),76 array( 'activity', 'group', 'member', 'member_groups' )77 );78 }79 56 80 57 /** … … 405 382 add_action( 'groups_leave_group', 'groups_update_last_activity' ); 406 383 add_action( 'groups_created_group', 'groups_update_last_activity' ); 407 add_action( 'groups_new_forum_topic', 'groups_update_last_activity' );408 add_action( 'groups_new_forum_topic_post', 'groups_update_last_activity' );409 384 410 385 /**
Note: See TracChangeset
for help on using the changeset viewer.