Fix Filter by Price block making a 404 request in the frontend (https://github.com/woocommerce/woocommerce-blocks/pull/9481)

This commit is contained in:
Albert Juhé Lluveras 2023-05-16 12:05:24 +02:00 committed by GitHub
parent 150cde7d56
commit 4c8baca475
1 changed files with 9 additions and 0 deletions

View File

@ -14,4 +14,13 @@ class PriceFilter extends AbstractBlock {
protected $block_name = 'price-filter';
const MIN_PRICE_QUERY_VAR = 'min_price';
const MAX_PRICE_QUERY_VAR = 'max_price';
/**
* Get the frontend script handle for this block type.
*
* @param string $key Data to get, or default to everything.
*/
protected function get_block_type_script( $key = null ) {
return null;
}
}