Skip to content

Commit

Permalink
don't limit the site details block to site pages (#184)
Browse files Browse the repository at this point in the history
the block itself does not need a site
  • Loading branch information
jhnstn authored Aug 21, 2024
1 parent c035349 commit b644134
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugin/blocks/src/site-details/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
* @package wpcloud
*/

if ( ! is_wpcloud_site_post() ) {
return;
}

/* Return early if the user is not an admin and the block is admin only */
if ( $attributes['adminOnly'] && ! current_user_can( 'manage_options' ) ) {
return;
}
Expand Down

0 comments on commit b644134

Please sign in to comment.