Changeset 8754 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 08/03/2014 08:52:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r8716 r8754 47 47 function bp_activity_do_mentions() { 48 48 return (bool) apply_filters( 'bp_activity_do_mentions', true ); 49 } 50 51 /** 52 * Should BuddyPress load the mentions scripts and related assets, including results to prime the 53 * mentions suggestions? 54 * 55 * @return bool True if mentions scripts should be loaded. 56 * @since BuddyPress (2.1.0) 57 */ 58 function bp_activity_maybe_load_mentions_scripts() { 59 $retval = 60 bp_activity_do_mentions() && 61 bp_is_user_active() && 62 ( bp_is_activity_component() || bp_is_blog_page() && is_singular() && comments_open() || is_admin() ); 63 64 return (bool) apply_filters( 'bp_activity_maybe_load_mentions_scripts', $retval ); 49 65 } 50 66
Note: See TracChangeset
for help on using the changeset viewer.