Changeset 5831 for sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php
- Timestamp:
- 08/22/2017 01:16:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php
r5826 r5831 95 95 'order' => 'DESC', 96 96 ); 97 $paged = get_query_var( 'paged' );97 $paged = isset( $_GET['rpage'] ) ? (int) $_GET['rpage'] : 0; 98 98 if ( $paged ) { 99 99 $query_args['paged'] = $paged; … … 232 232 233 233 private static function pagination( $query ) { 234 global $wp; 234 235 $bignum = 999999999; 235 $base_link = str_replace( $bignum, '%#%', esc_url( get_pagenum_link( $bignum) ) );236 $base_link = add_query_arg( 'rpage', '%#%', home_url( trailingslashit( $wp->request ) ) ); 236 237 $max_num_pages = $query->max_num_pages; 237 238 $current_page = max( 1, $query->get( 'paged' ) );
Note: See TracChangeset
for help on using the changeset viewer.