Skip to content

Commit

Permalink
Update the minimum WP version to 5.9 (#41306)
Browse files Browse the repository at this point in the history
* Update the minimum WP version to 5.9

* Use the code version of wp_enqueue_block_support_styles

* More tweaks

* more tweaks

* remove v1 gallery files

* revert gallery udpates

* maybe keep gallery for 6.0?

* php tests

* remove more tests that have been back ported

* Add a class variable for core data on the 6.1 resolver

* tweaks

* remove navigation test

* in 5.9 we default to `0` for site-logo setting in REST

Co-authored-by: ntsekouras <ntsekouras@outlook.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com>
  • Loading branch information
3 people authored Jul 1, 2022
1 parent 0ee78b1 commit 10594b1
Show file tree
Hide file tree
Showing 56 changed files with 346 additions and 13,226 deletions.
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

0 comments on commit 10594b1

Please sign in to comment.