Skip to:
Content

BuddyPress.org

Ticket #7699: 0002-fix-initialization-of-bp-activity-oldestpage-cookie.patch

File 0002-fix-initialization-of-bp-activity-oldestpage-cookie.patch, 903 bytes (added by chherbst, 6 years ago)
  • bp-templates/bp-legacy/js/buddypress.js

    From f58f493413cbc1441d7f413ab31aedad0d1d0e68 Mon Sep 17 00:00:00 2001
    From: Christoph Herbst <chris.p.herbst@gmail.com>
    Date: Wed, 21 Feb 2018 18:23:15 +0100
    Subject: [PATCH 2/2] fix initialization of bp-activity-oldestpage cookie
    
    ---
     bp-templates/bp-legacy/js/buddypress.js | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/bp-templates/bp-legacy/js/buddypress.js b/bp-templates/bp-legacy/js/buddypress.js
    index 9aa0004..aae0056 100644
    a b jq(document).ready( function() { 
    444444
    445445                        jq('#buddypress li.load-more').addClass('loading');
    446446
    447                         if ( null === jq.cookie('bp-activity-oldestpage') ) {
     447                        if ( ! jq.cookie('bp-activity-oldestpage') ) {
    448448                                jq.cookie('bp-activity-oldestpage', 1, {
    449449                                        path: '/',
    450450                                        secure: ( 'https:' === window.location.protocol )