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-template.php

    r7168 r7193  
    419419                    break;
    420420                case 'mentions':
     421
     422                    // Are mentions disabled?
     423                    if ( ! bp_activity_do_mentions() ) {
     424                        return false;
     425                    }
    421426
    422427                    // Start search at @ symbol and stop search at closing tag delimiter.
     
    27992804        elseif ( 'favorites' == bp_current_action() )
    28002805            $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/favorites/feed/';
    2801         elseif ( 'mentions' == bp_current_action() )
     2806        elseif ( 'mentions' == bp_current_action() && bp_activity_do_mentions() )
    28022807            $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/mentions/feed/';
    28032808        else
Note: See TracChangeset for help on using the changeset viewer.