diff --git a/src/php/cloud/list-table-shared-ops.php b/src/php/cloud/list-table-shared-ops.php index dbc0b1b9..b8e3f95e 100644 --- a/src/php/cloud/list-table-shared-ops.php +++ b/src/php/cloud/list-table-shared-ops.php @@ -182,7 +182,7 @@ function cloud_lts_pagination( string $which, string $source, int $total_items, $page_links[] = ''; } else { $page_links[] = sprintf( - '%s', + '%s', esc_url( remove_query_arg( $source . '_page', $current_url ) ), esc_html__( 'First page', 'code-snippets' ) ); @@ -192,7 +192,7 @@ function cloud_lts_pagination( string $which, string $source, int $total_items, $page_links[] = ''; } else { $page_links[] = sprintf( - '%s', + '%s', esc_url( add_query_arg( $source . '_page', max( 1, $current - 1 ), $current_url ) ), esc_html__( 'Previous page', 'code-snippets' ) );