From 71ea6597c88726797bf5771bb1b84ef2a13ae8c1 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 8 Nov 2019 19:04:30 -0500 Subject: [PATCH] Framework: Bump minimum required WordPress to 5.2 --- gutenberg.php | 4 ++-- phpcs.xml.dist | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gutenberg.php b/gutenberg.php index 76bf483c8f74b..dd2c9860ac99c 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -87,7 +87,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' ) ); @@ -122,7 +122,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; } diff --git a/phpcs.xml.dist b/phpcs.xml.dist index e039c8724c948..87c4674f45e6e 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -3,7 +3,7 @@ Sniffs for WordPress plugins, with minor modifications for Gutenberg - +