Make WordPress Core


Ignore:
Timestamp:
01/29/2025 05:38:49 PM (16 months ago)
Author:
joedolson
Message:

Administration: Fix pagination in categories, tags, and plugins tables.

Fix an issue introduced in [59134] that prevented manual entry of a page number in the pagination input field from navigating pages. Requiring validation of the bulk actions input also impacted other inputs nested in the same form.

Also fixes a pre-existing bug where it was not possible to navigate to page 1 using the input field.

Props ffffelix, im3dabasia1, apermo, rishavdutta, joedolson, swissspidy, jorbin, joedolson.
Fixes #62534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r58918 r59727  
    216216    if ( $pagenum > 1 ) {
    217217        $location = add_query_arg( 'paged', $pagenum, $location ); // $pagenum takes care of $total_pages.
     218    }
     219    if ( 1 === $pagenum ) {
     220        $location = remove_query_arg( 'paged', $location );
    218221    }
    219222
Note: See TracChangeset for help on using the changeset viewer.