Skip to:
Content

BuddyPress.org

Ticket #6143: 6143.patch

File 6143.patch, 745 bytes (added by imath, 10 years ago)
  • src/bp-templates/bp-legacy/js/buddypress.js

    diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
    index 57c0392..b6f71c4 100644
    function bp_filter_request( object, filter, scope, target, search_terms, page, e 
    18291829
    18301830/* Activity Loop Requesting */
    18311831function bp_activity_request(scope, filter) {
     1832        if ( null === scope ) {
     1833                // Defaults to all scope
     1834                scope = 'all';
     1835
     1836                // Keep the current scope if not null
     1837                if ( null !== jq.cookie( 'bp-activity-scope' ) ) {
     1838                        scope = jq.cookie( 'bp-activity-scope' );
     1839                }
     1840        }
     1841
    18321842        /* Save the type and filter to a session cookie */
    18331843        jq.cookie( 'bp-activity-scope', scope, {
    18341844                path: '/'