Prevented $order_query_args from being overwritten

The filter `woocommerce_order_list_table_prepare_items_query_args` was useless because its result was not used by the next filter.
This commit is contained in:
Grégory Viguier 2023-01-27 10:30:47 +01:00
parent 7ef4fef53a
commit c4428bfc6e
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class ListTable extends WP_List_Table {
*
* @since 7.3.0
*/
$order_query_args = apply_filters( 'woocommerce_' . $this->order_type . '_list_table_prepare_items_query_args', $this->order_query_args );
$order_query_args = apply_filters( 'woocommerce_' . $this->order_type . '_list_table_prepare_items_query_args', $order_query_args );
// We must ensure the 'paginate' argument is set.
$order_query_args['paginate'] = true;