From 864f5f384509c27b5416fb4fd7a6e5568765b5b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88ren=20Wrede?= Date: Fri, 24 May 2019 12:23:50 +0200 Subject: [PATCH 1/2] Increase WordPress minimum to 5.2 --- gutenberg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gutenberg.php b/gutenberg.php index 7b121cc8970fae..12a66985559bf5 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -76,7 +76,7 @@ function gutenberg_menu() { function gutenberg_wordpress_version_notice() { echo '

'; /* translators: %s: Minimum required version */ - printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.0.0' ); + printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.2.0' ); echo '

'; deactivate_plugins( array( 'gutenberg/gutenberg.php' ) ); @@ -110,7 +110,7 @@ function gutenberg_pre_init() { // Strip '-src' from the version string. Messes up version_compare(). $version = str_replace( '-src', '', $wp_version ); - if ( version_compare( $version, '5.0.0', '<' ) ) { + if ( version_compare( $version, '5.2.0', '<' ) ) { add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' ); return; } From 8a35a36d4c56535739d4b40aa4edce71f07e80a4 Mon Sep 17 00:00:00 2001 From: Soean Date: Tue, 12 Nov 2019 11:09:37 +0100 Subject: [PATCH 2/2] Increase PHPCompatibility to PHP 5.6 --- phpcs.xml.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index e039c8724c9485..87c4674f45e6e1 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -3,7 +3,7 @@ Sniffs for WordPress plugins, with minor modifications for Gutenberg - +