Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the minimum WP version to 5.9 #41306

Merged
merged 13 commits into from
Jul 1, 2022
6 changes: 3 additions & 3 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Gutenberg
* Plugin URI: https://github.com/WordPress/gutenberg
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
* Requires at least: 5.8
* Requires at least: 5.9
* Requires PHP: 5.6
* Version: 13.6.0-rc.1
* Author: Gutenberg Team
Expand All @@ -26,7 +26,7 @@
function gutenberg_wordpress_version_notice() {
echo '<div class="error"><p>';
/* translators: %s: Minimum required version */
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.8' );
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.9' );
echo '</p></div>';

deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );
Expand Down Expand Up @@ -64,7 +64,7 @@ function gutenberg_pre_init() {
// Compare against major release versions (X.Y) rather than minor (X.Y.Z)
// unless a minor release is the actual minimum requirement. WordPress reports
// X.Y for its major releases.
if ( version_compare( $version, '5.8', '<' ) ) {
if ( version_compare( $version, '5.9', '<' ) ) {
add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' );
return;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/block-supports/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function gutenberg_render_layout_support_flag( $block_content, $block ) {
1
);

gutenberg_enqueue_block_support_styles( $style );
wp_enqueue_block_support_styles( $style );

return $content;
}
Expand Down
112 changes: 0 additions & 112 deletions lib/compat/wordpress-5.9/admin-menu.php

This file was deleted.

29 changes: 0 additions & 29 deletions lib/compat/wordpress-5.9/block-editor-settings.php

This file was deleted.

45 changes: 0 additions & 45 deletions lib/compat/wordpress-5.9/block-patterns.php

This file was deleted.

Loading