From 74d3e9103e997f303d3d90d302516cffb3def0f4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 5 Dec 2013 21:29:37 +0000 Subject: [PATCH] Deactivate MP6 on update to 3.8. If left on, it introduces a lot of weird issues not easily diagnosed. MP6 will be updated before release to prevent itself from functioning 3.8+, but this will cut down on support requests by people who update core but not MP6, which was a fairly popular plugin. fixes #26334. git-svn-id: https://develop.svn.wordpress.org/trunk@26692 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 14 ++++++++++++++ src/wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index df25d807dc..1622cab934 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -408,6 +408,9 @@ function upgrade_all() { if ( $wp_current_db_version < 26148 ) upgrade_372(); + if ( $wp_current_db_version < 26691 ) + upgrade_380(); + maybe_disable_link_manager(); maybe_disable_automattic_widgets(); @@ -1237,6 +1240,17 @@ function upgrade_372() { wp_clear_scheduled_hook( 'wp_maybe_auto_update' ); } +/** + * Execute changes made in WordPress 3.8.0. + * + * @since 3.8.0 + */ +function upgrade_380() { + global $wp_current_db_version; + if ( $wp_current_db_version < 26691 ) { + deactivate_plugins( array( 'mp6/mp6.php' ), true ); + } +} /** * Execute network level changes * diff --git a/src/wp-includes/version.php b/src/wp-includes/version.php index d1529cee2a..215ca2c2bc 100644 --- a/src/wp-includes/version.php +++ b/src/wp-includes/version.php @@ -11,7 +11,7 @@ $wp_version = '3.8-RC1-src'; * * @global int $wp_db_version */ -$wp_db_version = 26644; +$wp_db_version = 26691; /** * Holds the TinyMCE version