Ensure register_block_type exists (https://github.com/woocommerce/woocommerce-blocks/pull/780)
This commit is contained in:
parent
3b39d6cc61
commit
166f9e3dfb
|
@ -72,7 +72,7 @@ class Package {
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
protected static function has_dependencies() {
|
protected static function has_dependencies() {
|
||||||
return class_exists( 'WooCommerce' );
|
return class_exists( 'WooCommerce' ) && function_exists( 'register_block_type' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue