| | 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 | /** |