Skip to:
Content

BuddyPress.org

Changeset 5447


Ignore:
Timestamp:
12/05/2011 07:46:27 PM (13 years ago)
Author:
boonebgorges
Message:

Disable support for BP 1.1-era afilter arguments, except when enabled by a filter. Fixes #3754

File:
1 edited

Legend:

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

    r5330 r5447  
    375375        $per_page = $max;
    376376
    377     // Support for basic filters in earlier BP versions.
    378     if ( isset( $_GET['afilter'] ) )
     377    // Support for basic filters in earlier BP versions is disabled by default. To enable, put
     378    //   add_filter( 'bp_activity_enable_afilter_support', '__return_true' );
     379    // into bp-custom.php or your theme's functions.php
     380    if ( isset( $_GET['afilter'] ) && apply_filters( 'bp_activity_enable_afilter_support', false ) )
    379381        $filter = array( 'object' => $_GET['afilter'] );
    380382    else if ( !empty( $user_id ) || !empty( $object ) || !empty( $action ) || !empty( $primary_id ) || !empty( $secondary_id ) )
Note: See TracChangeset for help on using the changeset viewer.