mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
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
Built from https://develop.svn.wordpress.org/trunk@26509 git-svn-id: http://core.svn.wordpress.org/trunk@26403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ddb058d36
commit
578469fb12
@ -623,7 +623,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
|||||||
|
|
||||||
$network_deactivating = false !== $network_wide && is_plugin_active_for_network( $plugin );
|
$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
|
* Fires for each plugin being deactivated in deactivate_plugins(), before deactivation
|
||||||
* and when the $silent parameter is false.
|
* 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.
|
* or just the current site. Multisite only. Default is false.
|
||||||
*/
|
*/
|
||||||
do_action( 'deactivate_plugin', $plugin, $network_deactivating );
|
do_action( 'deactivate_plugin', $plugin, $network_deactivating );
|
||||||
|
}
|
||||||
|
|
||||||
if ( false !== $network_wide ) {
|
if ( false !== $network_wide ) {
|
||||||
if ( is_plugin_active_for_network( $plugin ) ) {
|
if ( is_plugin_active_for_network( $plugin ) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user