From c3d961c32e3fa5e5f4cb47d7d3bfffddf33512af Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 18 Jan 2019 16:48:38 -0500 Subject: [PATCH] Framework: Bump minimum required WP to 5.x --- gutenberg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gutenberg.php b/gutenberg.php index 2df698bd414130..e073b9a04bd37e 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -152,7 +152,7 @@ function is_gutenberg_page() { */ function gutenberg_wordpress_version_notice() { echo '

'; - _e( 'Gutenberg requires WordPress 4.9.8 or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ); + _e( 'Gutenberg requires WordPress 5.0.0 or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ); echo '

'; deactivate_plugins( array( 'gutenberg/gutenberg.php' ) ); @@ -186,7 +186,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, '4.9.8', '<' ) ) { + if ( version_compare( $version, '5.0.0', '<' ) ) { add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' ); return; }