From 69262443e0f93ba395374c4e68085055d47aaed7 Mon Sep 17 00:00:00 2001 From: Allen Benny <48691514+officiallygod@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:45:45 +0530 Subject: [PATCH] Update Config.php --- includes/Config.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/Config.php b/includes/Config.php index 554dade..15570c5 100644 --- a/includes/Config.php +++ b/includes/Config.php @@ -36,10 +36,6 @@ public static function get_wp_config_initialization_constants() { * @return boolean */ public static function get_site_capability( $capability ) { - // Only fetch capabilities in the admin when a user is logged in - if ( ! is_admin() || ! is_user_logged_in() ) { - return false; - } $site_capabilities = new SiteCapabilities(); return $site_capabilities->get( $capability ); }