Skip to content

Commit

Permalink
Remove paged query arg if equal to 1.
Browse files Browse the repository at this point in the history
Resolve existing issue with manual entry of page 1 not working.
  • Loading branch information
joedolson committed Dec 14, 2024
1 parent 61b0c79 commit e0d6f62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-admin/edit-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@
if ( $pagenum > 1 ) {
$location = add_query_arg( 'paged', $pagenum, $location ); // $pagenum takes care of $total_pages.
}
if ( 1 === $pagenum ) {
$location = remove_query_arg( 'paged', $location );
}

/**
* Filters the taxonomy redirect destination URL.
Expand Down

0 comments on commit e0d6f62

Please sign in to comment.