Changeset 13759 for trunk/src/bp-activity/screens/mentions.php
- Timestamp:
- 03/09/2024 10:46:28 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-activity/screens/mentions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/screens/mentions.php
r11885 r13759 23 23 do_action( 'bp_activity_screen_mentions' ); 24 24 25 /** 26 * Filters the template to load for the "Mentions" screen. 27 * 28 * @since 1.2.0 29 * 30 * @param string $template Path to the activity template to load. 31 */ 32 bp_core_load_template( apply_filters( 'bp_activity_template_mention_activity', 'members/single/home' ) ); 25 $templates = array( 26 /** 27 * Filters the template to load for the "Mentions" screen. 28 * 29 * @since 1.2.0 30 * 31 * @param string $template Path to the activity template to load. 32 */ 33 apply_filters( 'bp_activity_template_mention_activity', 'members/single/home' ), 34 'members/single/index', 35 ); 36 37 bp_core_load_template( $templates ); 33 38 } 34 39 … … 38 43 * @since 1.5.0 39 44 * 45 * @return void 40 46 */ 41 47 function bp_activity_reset_my_new_mentions() { 42 if ( bp_is_my_profile() ) 43 bp_activity_clear_new_mentions( bp_loggedin_user_id() ); 48 if ( ! bp_is_my_profile() ) { 49 return; 50 } 51 52 bp_activity_clear_new_mentions( bp_loggedin_user_id() ); 44 53 } 45 54 add_action( 'bp_activity_screen_mentions', 'bp_activity_reset_my_new_mentions' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)