Changeset 7187 for trunk/src/includes/extend/buddypress/activity.php
- Timestamp:
- 01/04/2021 04:43:19 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/extend/buddypress/activity.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/activity.php
r6810 r7187 143 143 add_action( 'bbp_delete_topic', array( $this, 'topic_delete' ), 10, 1 ); 144 144 add_action( 'bbp_delete_reply', array( $this, 'reply_delete' ), 10, 1 ); 145 146 // Append forum filters in site wide activity streams147 add_action( 'bp_activity_filter_options', array( $this, 'activity_filter_options' ), 10 );148 149 // Append forum filters in single member activity streams150 add_action( 'bp_member_activity_filter_options', array( $this, 'activity_filter_options' ), 10 );151 152 // Append forum filters in single group activity streams153 add_action( 'bp_group_activity_filter_options', array( $this, 'activity_filter_options' ), 10 );154 145 } 155 146 … … 208 199 array( 'activity', 'member', 'member_groups', 'group' ) 209 200 ); 210 211 // Group forums212 /**213 * An upstream improvement to BuddyPress is required to make these work,214 * but they are included here to make our lives easier later.215 if ( bp_is_active( 'groups' ) ) {216 217 // Topic218 bp_activity_set_action(219 buddypress()->groups->id,220 $this->topic_create,221 esc_html__( 'New forum topic', 'bbpress' ),222 'bbp_format_activity_action_new_topic',223 esc_html__( 'Topics', 'bbpress' ),224 array( 'activity', 'member', 'member_groups', 'group' )225 );226 227 // Reply228 bp_activity_set_action(229 buddypress()->groups->id,230 $this->reply_create,231 esc_html__( 'New forum reply', 'bbpress' ),232 'bbp_format_activity_action_new_reply',233 esc_html__( 'Replies', 'bbpress' ),234 array( 'activity', 'member', 'member_groups', 'group' )235 );236 }237 */238 201 } 239 202 … … 381 344 } 382 345 383 /**384 * Append forum options to activity filter select box385 *386 * @since 2.1.0 bbPress (r3653)387 */388 function activity_filter_options() {389 ?>390 391 <option value="<?php echo $this->topic_create; ?>"><?php esc_html_e( 'Topics', 'bbpress' ); ?></option>392 <option value="<?php echo $this->reply_create; ?>"><?php esc_html_e( 'Replies', 'bbpress' ); ?></option>393 394 <?php395 }396 397 346 /** Topics ****************************************************************/ 398 347
Note: See TracChangeset
for help on using the changeset viewer.