Completed
Pull Request — master (#886)
by
unknown
17:26
created
blocks/blocks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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 );
Please login to merge, or discard this patch.