Skip to content

Commit

Permalink
(CONT.) Remove notice
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Nov 1, 2018
1 parent 4e091cb commit eb8ca47
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@
* @package gutenberg
*/

function gutenberg_high_wordpress_version_notice() {
echo '<div class="notice notice-warning"><p>';
echo __( 'WordPress 5.0 replaces the currently installed version of Gutenberg. Plugin deactivated. No action required.', 'gutenberg' );
echo '</p></div>';
}

// 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;
}
Expand Down

0 comments on commit eb8ca47

Please sign in to comment.