Skip to content

Commit

Permalink
Update Config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod authored Nov 21, 2024
1 parent 0cfa0ce commit 6926244
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 6926244

Please sign in to comment.