Skip to content

Commit

Permalink
Consider 6.0 from beta1 so we can test this properly
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 13, 2022
1 parent dc138d9 commit e555884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.0/block-editor-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ function gutenberg_get_block_editor_settings( $settings ) {
if ( 'other' === $context ) {
global $wp_version;
$is_wp_5_8 = version_compare( $wp_version, '5.8', '>=' ) && version_compare( $wp_version, '5.9', '<' );
$is_wp_5_9 = version_compare( $wp_version, '5.9', '>=' ) && version_compare( $wp_version, '6.0', '<' );
$is_wp_6_0 = version_compare( $wp_version, '6.0', '>=' );
$is_wp_5_9 = version_compare( $wp_version, '5.9', '>=' ) && version_compare( $wp_version, '6.0-beta1', '<' );
$is_wp_6_0 = version_compare( $wp_version, '6.0-beta1', '>=' );

// Make sure the styles array exists.
// In some contexts, like the navigation editor, it doesn't.
Expand Down

0 comments on commit e555884

Please sign in to comment.