Changeset 9243 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 12/20/2014 07:58:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r9194 r9243 65 65 */ 66 66 function bp_activity_maybe_load_mentions_scripts() { 67 $retval = 68 bp_activity_do_mentions() && 69 bp_is_user_active() && 70 ( bp_is_activity_component() || bp_is_blog_page() && is_singular() && comments_open() || is_admin() ); 67 $mentions_enabled = bp_activity_do_mentions() && bp_is_user_active(); 68 $load_mentions = $mentions_enabled && ( bp_is_activity_component() || is_admin() ); 71 69 72 70 /** … … 75 73 * @since BuddyPress (2.1.0) 76 74 * 77 * @param bool $retval True to load mentions assets, false otherwise. 78 */ 79 return (bool) apply_filters( 'bp_activity_maybe_load_mentions_scripts', $retval ); 75 * @param bool $load_mentions True to load mentions assets, false otherwise. 76 * @param bool $mentions_enabled True if mentions are enabled. 77 */ 78 return (bool) apply_filters( 'bp_activity_maybe_load_mentions_scripts', $load_mentions, $mentions_enabled ); 80 79 } 81 80
Note: See TracChangeset
for help on using the changeset viewer.