Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gute active check. #39

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions src/wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,8 @@ function upgrade_all() {
upgrade_460();
}

if ( $wp_current_db_version < 43764 ) {
upgrade_500();
if ( $wp_current_db_version < 44719 ) {
upgrade_510();
}

maybe_disable_link_manager();
Expand Down Expand Up @@ -2097,25 +2097,19 @@ function upgrade_460() {
*
* @ignore
* @since 5.0.0
*
* @global int $wp_current_db_version Current database version.
* @deprecated 5.1.0
*/
function upgrade_500() {
global $wp_current_db_version;
if ( $wp_current_db_version < 43764 ) {
// Allow bypassing Gutenberg plugin deactivation.
if ( defined( 'GUTENBERG_USE_PLUGIN' ) && GUTENBERG_USE_PLUGIN ) {
return;
}

$was_active = is_plugin_active( 'gutenberg/gutenberg.php' );
if ( $was_active ) {
// FIXME: Leave until 501 or 510 to clean up.
update_site_option( 'upgrade_500_was_gutenberg_active', '1' );
}
}

deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
}
/**
* Executes changes made in WordPress 5.1.0.
*
* @ignore
* @since 5.1.0
*/
function upgrade_510() {
delete_site_option( 'upgrade_500_was_gutenberg_active' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @global int $wp_db_version
*/
$wp_db_version = 44467;
$wp_db_version = 44719;

/**
* Holds the TinyMCE version
Expand Down