@@ -13,7 +13,7 @@ |
||
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 ); |