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
This commit is contained in:
parent
1d4807f7c5
commit
71bc2a38fa
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user