diff --git a/gutenberg.php b/gutenberg.php index 4e3d1effc281b..c076b3c692595 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -9,17 +9,10 @@ * @package gutenberg */ -function gutenberg_high_wordpress_version_notice() { - echo '

'; - echo __( 'WordPress 5.0 replaces the currently installed version of Gutenberg. Plugin deactivated. No action required.', 'gutenberg' ); - echo '

'; -} - // Get unmodified $wp_version. include ABSPATH . WPINC . '/version.php'; if ( version_compare( $wp_version, '4.9.8', '>' ) ) { require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); - add_action( 'admin_notices', 'gutenberg_high_wordpress_version_notice' ); deactivate_plugins( array( 'gutenberg/gutenberg.php' ) ); return; }