Skip to:
Content

BuddyPress.org

Changeset 12335 for branches/4.0


Ignore:
Timestamp:
02/19/2019 03:40:54 PM (19 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.

Merges [12334] to the 4.0 branch.

Fixes #8050.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/src/bp-templates/bp-legacy/js/buddypress.js

    r12257 r12335  
    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.