Skip to content

Commit

Permalink
Remove WP6.2 compat code
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Mar 8, 2024
1 parent 2399596 commit b3ffd2a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions classes/class-block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}
}

Expand Down

0 comments on commit b3ffd2a

Please sign in to comment.