Skip to content

Commit

Permalink
Improve boolean handling in is_network_activated
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Aug 21, 2022
1 parent 37fa080 commit db6f3c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,5 @@
function is_network_activated( $plugin ) {
$plugins = get_site_option( 'active_sitewide_plugins' );

if ( is_multisite() && isset( $plugins[ $plugin ] ) ) {
return true;
}

return false;
return is_multisite() && isset( $plugins[ $plugin ] );
}

0 comments on commit db6f3c8

Please sign in to comment.