diff --git a/classes/class-block-editor.php b/classes/class-block-editor.php index 72ab920..c927753 100644 --- a/classes/class-block-editor.php +++ b/classes/class-block-editor.php @@ -23,12 +23,8 @@ public function __construct() { add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_scripts' ) ); // Enqueue block editor styles - // TODO: Remove this conditional statement and unify it with `enqueue_block_assets` hook - // when the supported minimum WordPress version is 6.3 or higher. - if ( is_wp_version_compatible( '6.3' ) && is_admin() ) { + if ( is_admin() ) { add_action( 'enqueue_block_assets', array( $this, 'enqueue_editor_styles' ) ); - } else { - add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_styles' ) ); } }