Skip to:
Content

BuddyPress.org

Changeset 11419


Ignore:
Timestamp:
02/08/2017 08:10:10 PM (8 years ago)
Author:
boonebgorges
Message:

Don't use activity function to filter AJAX querystring when Activity component is disabled.

Introduced in [11356].

Props espellcaste.
Fixes #7440.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r11377 r11419  
    687687
    688688    // Activity stream filtering on action.
    689     if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {
     689    if ( bp_is_active( 'activity' ) && ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {
    690690        $qs[] = 'type=' . $_BP_COOKIE['bp-' . $object . '-filter'];
    691691
Note: See TracChangeset for help on using the changeset viewer.