Ticket #26334: 26334.patch
File 26334.patch, 1.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/upgrade.php
412 412 413 413 maybe_disable_automattic_widgets(); 414 414 415 maybe_disable_mp6_thx38_dash(); 416 415 417 update_option( 'db_version', $wp_db_version ); 416 418 update_option( 'db_upgraded', true ); 417 419 } … … 1990 1992 } 1991 1993 1992 1994 /** 1995 * Disables MP6, THX38, and DASH plugins, which were merged into core. 1996 * 1997 * @since 3.8.0 1998 */ 1999 function maybe_disable_mp6_thx38_dash() { 2000 $plugins = __get_option( 'active_plugins' ); 2001 2002 foreach ( (array) $plugins as $plugin ) { 2003 if ( in_array( basename( $plugin ), array( 'mp6.php', 'thx-38.php', 'dashboard.php' ) ) ) { 2004 array_splice( $plugins, array_search( $plugin, $plugins ), 1 ); 2005 update_option( 'active_plugins', $plugins ); 2006 break; 2007 } 2008 } 2009 } 2010 2011 /** 1993 2012 * Disables the Link Manager on upgrade, if at the time of upgrade, no links exist in the DB. 1994 2013 * 1995 2014 * @since 3.5.0