Skip to content

Commit

Permalink
Framework: Bump minimum required WordPress to 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Nov 9, 2019
1 parent c721a4d commit 71ea659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function gutenberg_menu() {
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.0.0' );
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.2.0' );
echo '</p></div>';

deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<description>Sniffs for WordPress plugins, with minor modifications for Gutenberg</description>

<rule ref="PHPCompatibility"/>
<config name="testVersion" value="5.2-"/>
<config name="testVersion" value="5.6-"/>

<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
Expand Down

0 comments on commit 71ea659

Please sign in to comment.