mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -347,12 +347,12 @@ function deactivate_plugins($plugins, $silent= false) {
|
||||
continue;
|
||||
if ( ! $silent )
|
||||
do_action( 'deactivate_plugin', trim( $plugin ) );
|
||||
|
||||
|
||||
$key = array_search( $plugin, (array) $current );
|
||||
|
||||
|
||||
if ( false !== $key )
|
||||
array_splice( $current, $key, 1 );
|
||||
|
||||
|
||||
//Used by Plugin updater to internally deactivate plugin, however, not to notify plugins of the fact to prevent plugin output.
|
||||
if ( ! $silent ) {
|
||||
do_action( 'deactivate_' . trim( $plugin ) );
|
||||
@@ -489,7 +489,7 @@ function delete_plugins($plugins, $redirect = '' ) {
|
||||
}
|
||||
|
||||
function validate_active_plugins() {
|
||||
$check_plugins = apply_filters( 'active_plugins', get_option('active_plugins') );
|
||||
$check_plugins = apply_filters( 'active_plugins', get_option('active_plugins') );
|
||||
|
||||
// Sanity check. If the active plugin list is not an array, make it an
|
||||
// empty array.
|
||||
|
||||
Reference in New Issue
Block a user