Completed
Pull Request — master (#885)
by Ulrich
17:27
created
blocks/blocks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 		add_action( 'enqueue_block_editor_assets', array( $this, 'editor_scripts' ) );
14 14
 		add_action( 'init', array( $this, 'register_blocks' ), 11 );
15 15
 		// The 'block_categories' filter has been deprecated in WordPress 5.8 and replaced by 'block_categories_all'.
16
-		if ( version_compare( $GLOBALS['wp_version'], '5.8-beta0', '<' ) ) {
16
+		if ( version_compare( $GLOBALS[ 'wp_version' ], '5.8-beta0', '<' ) ) {
17 17
 			add_filter( 'block_categories', [ $this, 'easy_forms_register_category' ], 10, 2 );
18 18
 		} else {
19 19
 			add_filter( 'block_categories_all', [ $this, 'easy_forms_register_category' ], 10, 2 );
Please login to merge, or discard this patch.