Filter out empty requests
This commit is contained in:
parent
407421ef22
commit
cb6f6e2adf
|
@ -539,7 +539,7 @@ class WC_REST_Taxes_Controller extends WP_REST_Controller {
|
||||||
global $wp_rest_server;
|
global $wp_rest_server;
|
||||||
|
|
||||||
// Get the request params.
|
// Get the request params.
|
||||||
$items = $request->get_params();
|
$items = array_filter( $request->get_params() );
|
||||||
|
|
||||||
// Limit bulk operation.
|
// Limit bulk operation.
|
||||||
$limit = apply_filters( 'woocommerce_rest_bulk_items_limit', 100, 'taxes' );
|
$limit = apply_filters( 'woocommerce_rest_bulk_items_limit', 100, 'taxes' );
|
||||||
|
|
Loading…
Reference in New Issue