Skip to content

Commit dc6e470

Browse files
authored
Increase WordPress minimum to 5.2.0 (WordPress#15809)
* Increase WordPress minimum to 5.2 * Increase PHPCompatibility to PHP 5.6
1 parent e137ea9 commit dc6e470

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gutenberg.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function gutenberg_menu() {
8787
function gutenberg_wordpress_version_notice() {
8888
echo '<div class="error"><p>';
8989
/* translators: %s: Minimum required version */
90-
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.0.0' );
90+
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.2.0' );
9191
echo '</p></div>';
9292

9393
deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );
@@ -122,7 +122,7 @@ function gutenberg_pre_init() {
122122
// Strip '-src' from the version string. Messes up version_compare().
123123
$version = str_replace( '-src', '', $wp_version );
124124

125-
if ( version_compare( $version, '5.0.0', '<' ) ) {
125+
if ( version_compare( $version, '5.2.0', '<' ) ) {
126126
add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' );
127127
return;
128128
}

phpcs.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<description>Sniffs for WordPress plugins, with minor modifications for Gutenberg</description>
44

55
<rule ref="PHPCompatibility"/>
6-
<config name="testVersion" value="5.2-"/>
6+
<config name="testVersion" value="5.6-"/>
77

88
<rule ref="WordPress-Core"/>
99
<rule ref="WordPress-Docs"/>

0 commit comments

Comments
 (0)