From db6f3c87e200f97d602d70d148ac7e0e69e84c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 21 Aug 2022 15:58:37 +0000 Subject: [PATCH] Improve boolean handling in is_network_activated --- includes/utils.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/utils.php b/includes/utils.php index 1e72abe..70f4235 100644 --- a/includes/utils.php +++ b/includes/utils.php @@ -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 ] ); }