Skip to:
Content

BuddyPress.org

Changeset 12334


Ignore:
Timestamp:
02/19/2019 03:40:02 PM (10 months ago)
Author:
boonebgorges
Message:

BP-Legacy: Ensure that member/group directory sort works for non-logged-in users.

[12257] removed cookie-based sorting for the activity directory, but the change
was not properly ported to other directory types.

Fixes #8050.

File:
1 edited

Legend:

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

    r12257 r12334  
    18671867    }
    18681868
     1869    // Get directory preferences (called "cookie" for legacy reasons).
     1870    var cookies = {};
     1871    cookies['bp-' + object + '-filter'] = bp_get_directory_preference( object, 'filter' );
     1872    cookies['bp' + object + '-scope']   = bp_get_directory_preference( object, 'scope' );
     1873
     1874    var cookie = encodeURIComponent( jq.param( cookies ) );
     1875
    18691876    bp_ajax_request = jq.post( ajaxurl, {
    18701877        action: object + '_filter',
    1871         'cookie': bp_get_cookies(),
     1878        'cookie': cookie,
    18721879        'object': object,
    18731880        'filter': filter,
Note: See TracChangeset for help on using the changeset viewer.