This commit is contained in:
Mike Jolley 2019-07-31 10:33:05 +01:00 committed by GitHub
parent 3b39d6cc61
commit 166f9e3dfb
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class Package {
* @return boolean
*/
protected static function has_dependencies() {
return class_exists( 'WooCommerce' );
return class_exists( 'WooCommerce' ) && function_exists( 'register_block_type' );
}
/**