Skip to:
Content

BuddyPress.org

Changeset 11377


Ignore:
Timestamp:
01/06/2017 03:47:06 AM (8 years ago)
Author:
boonebgorges
Message:

AJAX directory 'type' should not depend on 'action' whitelist.

Introduced in [11356], via some overzealous cutting and pasting.

Props slaFFik, hnla.
Fixes #7414.

File:
1 edited

Legend:

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

    r11369 r11377  
    688688    // Activity stream filtering on action.
    689689    if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {
     690        $qs[] = 'type=' . $_BP_COOKIE['bp-' . $object . '-filter'];
     691
    690692        $actions = bp_activity_get_actions_for_context();
    691693        foreach ( $actions as $action ) {
    692694            if ( $action['key'] === $_BP_COOKIE['bp-' . $object . '-filter'] ) {
    693                 $qs[] = 'type='   . $_BP_COOKIE['bp-' . $object . '-filter'];
    694695                $qs[] = 'action=' . $_BP_COOKIE['bp-' . $object . '-filter'];
    695696            }
Note: See TracChangeset for help on using the changeset viewer.