Skip to content

Commit

Permalink
remove all site cap changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0aveRyan committed Nov 22, 2024
1 parent 3ea8ca6 commit 7ee0b91
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions includes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public static function get_wp_config_initialization_constants() {
*/
public static function get_site_capability( $capability ) {
// Only fetch capabilities in the admin when a user is logged in
if ( ! is_user_logged_in() ) {
return false;
}
$site_capabilities = new SiteCapabilities();
return $site_capabilities->get( $capability );
}
Expand Down

0 comments on commit 7ee0b91

Please sign in to comment.