Skip to:
Content

BuddyPress.org

Ticket #7699: 0001-outcomment-unneeded-setting-of-cookie.patch

File 0001-outcomment-unneeded-setting-of-cookie.patch, 1.1 KB (added by chherbst, 6 years ago)
  • bp-templates/bp-legacy/js/buddypress.js

    From 047f56a94a13a4dba0a5f460c41890c66d77422e Mon Sep 17 00:00:00 2001
    From: Christoph Herbst <chris.p.herbst@gmail.com>
    Date: Wed, 21 Feb 2018 18:23:24 +0100
    Subject: [PATCH] outcomment unneeded setting of cookie
    
    ---
     bp-templates/bp-legacy/js/buddypress.js | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/bp-templates/bp-legacy/js/buddypress.js b/bp-templates/bp-legacy/js/buddypress.js
    index aae0056..095e5d3 100644
    a b jq(document).ready( function() { 
    17811781/* Setup activity scope and filter based on the current cookie settings. */
    17821782function bp_init_activity() {
    17831783        /* Reset the page */
    1784         jq.cookie( 'bp-activity-oldestpage', 1, {
     1784        /*jq.cookie( 'bp-activity-oldestpage', 1, {
    17851785                path: '/',
    17861786                secure: ( 'https:' === window.location.protocol )
    1787         } );
     1787        } );*/
    17881788
    17891789        if ( undefined !== jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length ) {
    17901790                jq('#activity-filter-select select option[value="' + jq.cookie('bp-activity-filter') + '"]').prop( 'selected', true );