Skip to content

Commit

Permalink
Merge pull request #115 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Improve boolean handling in is_network_activated
  • Loading branch information
jeffpaul authored Dec 4, 2023
2 parents 9d8a18b + db6f3c8 commit 93e3414
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 93e3414

Please sign in to comment.