From 71bc2a38faa522b58de3816ab1aa39d2ee573dcf Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 1 Dec 2013 23:12:38 +0000 Subject: [PATCH] Add braces around a conditional hook. This wasn't causing an issue as `if ( conditional ) /* multiline comment */ command();` is perfectly OK, but left open doubt and potential future bugs. See #25229 git-svn-id: https://develop.svn.wordpress.org/trunk@26509 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/plugin.php b/src/wp-admin/includes/plugin.php index 9a25da5eae..8a2cd9b749 100644 --- a/src/wp-admin/includes/plugin.php +++ b/src/wp-admin/includes/plugin.php @@ -623,7 +623,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { $network_deactivating = false !== $network_wide && is_plugin_active_for_network( $plugin ); - if ( ! $silent ) + if ( ! $silent ) { /** * Fires for each plugin being deactivated in deactivate_plugins(), before deactivation * and when the $silent parameter is false. @@ -635,6 +635,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { * or just the current site. Multisite only. Default is false. */ do_action( 'deactivate_plugin', $plugin, $network_deactivating ); + } if ( false !== $network_wide ) { if ( is_plugin_active_for_network( $plugin ) ) {