Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/23/2014 01:00:46 AM (9 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-forums/bp-forums-template.php

    r9037 r9260  
    296296                'prev_text' => _x( '←', 'Forum topic pagination previous text', 'buddypress' ),
    297297                'next_text' => _x( '→', 'Forum topic pagination next text', 'buddypress' ),
    298                 'mid_size'  => 1
     298                'mid_size'  => 1,
     299                'add_args'  => array(),
    299300            ) );
    300301        }
     
    568569                'prev_text' => _x( '←', 'Forum topic pagination previous text', 'buddypress' ),
    569570                'next_text' => _x( '→', 'Forum topic pagination next text', 'buddypress' ),
    570                 'mid_size'  => 1
     571                'mid_size'  => 1,
     572                'add_args'  => array(),
    571573            ) );
    572574
     
    17361738                'prev_text' => _x( '←', 'Forum thread pagination previous text', 'buddypress' ),
    17371739                'next_text' => _x( '→', 'Forum thread pagination next text', 'buddypress' ),
    1738                 'mid_size'  => 1
     1740                'mid_size'  => 1,
     1741                'add_args'  => array(),
    17391742            ) );
    17401743
Note: See TracChangeset for help on using the changeset viewer.