Skip to:
Content

BuddyPress.org

Ticket #6143: 6143.02.patch

File 6143.02.patch, 758 bytes (added by r-a-y, 10 years ago)
  • src/bp-templates/bp-legacy/js/buddypress.js

     
    19111911/* Activity Loop Requesting */
    19121912function bp_activity_request(scope, filter) {
    19131913        /* Save the type and filter to a session cookie */
    1914         jq.cookie( 'bp-activity-scope', scope, {
    1915                 path: '/'
    1916         } );
    1917         jq.cookie( 'bp-activity-filter', filter, {
    1918                 path: '/'
    1919         } );
     1914        if ( null !== scope ) {
     1915                jq.cookie( 'bp-activity-scope', scope, {
     1916                        path: '/'
     1917                } );
     1918        }
     1919        if ( null !== filter ) {
     1920                jq.cookie( 'bp-activity-filter', filter, {
     1921                        path: '/'
     1922                } );
     1923        }
    19201924        jq.cookie( 'bp-activity-oldestpage', 1, {
    19211925                path: '/'
    19221926        } );