mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Check basename(). see #4169
git-svn-id: https://develop.svn.wordpress.org/trunk@5345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c12eb84474
commit
e1863b22cc
@ -1116,9 +1116,12 @@ function wp_check_mysql_version() {
|
|||||||
function maybe_disable_automattic_widgets() {
|
function maybe_disable_automattic_widgets() {
|
||||||
$plugins = __get_option( 'active_plugins' );
|
$plugins = __get_option( 'active_plugins' );
|
||||||
|
|
||||||
if ( in_array( 'widgets/widgets.php', $plugins ) ) {
|
foreach ( $plugins as $plugin ) {
|
||||||
array_splice( $plugins, array_search( 'widgets/widgets.php', $plugins ), 1 );
|
if ( basename( $plugin ) == 'widgets.php' ) {
|
||||||
update_option( 'active_plugins', $plugins );
|
array_splice( $plugins, array_search( $plugin, $plugins ), 1 );
|
||||||
|
update_option( 'active_plugins', $plugins );
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user