Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 814b333

Browse files
committed
Ensure register_block_type exists
1 parent 9752707 commit 814b333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function get_path() {
7272
* @return boolean
7373
*/
7474
protected static function has_dependencies() {
75-
return class_exists( 'WooCommerce' );
75+
return class_exists( 'WooCommerce' ) && function_exists( 'register_block_type' );
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)