Skip to content

Commit

Permalink
also ignore order and orderby when determining base request
Browse files Browse the repository at this point in the history
  • Loading branch information
alpipego committed Sep 19, 2022
1 parent 0483932 commit c6ec707
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/wp-admin/includes/class-wp-posts-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,12 @@ public function no_items() {
* @return bool Whether the current view is the "All" view.
*/
protected function is_base_request() {
$vars = $_GET;
unset( $vars['paged'], $vars['mode'] );
$vars = array_diff_key( $_GET, array_flip( array(
'order',
'orderby',
'paged',
'mode',
) ) );

if ( empty( $vars ) ) {
return true;
Expand Down

0 comments on commit c6ec707

Please sign in to comment.