@@ -15,7 +15,7 @@ |
||
15 | 15 | add_action( 'init', array( $this, 'register_blocks' ), 11 ); |
16 | 16 | |
17 | 17 | // The 'block_categories' filter has been deprecated in WordPress 5.8 and replaced by 'block_categories_all'. |
18 | - if ( !class_exists( 'WP_Block_Editor_Context' ) ) { |
|
18 | + if ( ! class_exists( 'WP_Block_Editor_Context' ) ) { |
|
19 | 19 | add_filter( 'block_categories', array( $this, 'easy_forms_register_category' ), 10, 2 ); |
20 | 20 | } else { |
21 | 21 | add_filter( 'block_categories_all', array( $this, 'easy_forms_register_category' ), 10, 2 ); |