Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/23/2014 01:00:46 AM (10 years ago)
Author:
imath
Message:

Make sure paginate links are correctly set in case javascript is disabled

Adding extra query arguments to the 'base' parameter of the paginate_links() function when javascript is disabled is preventing the loops to be correctly paginated. In this particular case, the pagination is 'stuck' on the second page. To be sure the pagination is correctly set, we need to pass extra query arguments using the 'add_args' parameter of the paginate_links() function.

Fixes #5967

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r9218 r9260  
    249249                'prev_text' => _x( '←', 'Blog pagination previous text', 'buddypress' ),
    250250                'next_text' => _x( '→', 'Blog pagination next text',     'buddypress' ),
    251                 'mid_size'  => 1
     251                'mid_size'  => 1,
     252                'add_args'  => array(),
    252253            ) );
    253254        }
Note: See TracChangeset for help on using the changeset viewer.