Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/09/2013 02:04:36 PM (12 years ago)
Author:
boonebgorges
Message:

Introduces bp_activity_do_mentions(), a toggle for the activity mentions feature

Fixes #3388

Props thebrandonallen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-filters.php

    r6649 r7193  
    209209function bp_activity_at_name_filter( $content, $activity_id = 0 ) {
    210210
     211    // Are mentions disabled?
     212    if ( ! bp_activity_do_mentions() ) {
     213        return $content;
     214    }
     215
    211216    // Try to find mentions
    212217    $usernames = bp_activity_find_mentions( $content );
     
    238243 */
    239244function bp_activity_at_name_filter_updates( $activity ) {
     245    // Are mentions disabled?
     246    if ( ! bp_activity_do_mentions() ) {
     247        return;
     248    }
     249
    240250    // If activity was marked as spam, stop the rest of this function.
    241251    if ( ! empty( $activity->is_spam ) )
     
    272282 */
    273283function bp_activity_at_name_send_emails( $activity ) {
     284    // Are mentions disabled?
     285    if ( ! bp_activity_do_mentions() ) {
     286        return;
     287    }
     288
    274289    // If our temporary variable doesn't exist, stop now.
    275290    if ( empty( buddypress()->activity->mentioned_users ) )
Note: See TracChangeset for help on using the changeset viewer.