- fix profile block for guests

This commit is contained in:
ashubawork
2023-05-09 13:30:39 +03:00
parent 2c222e34b8
commit 0c7bfbf9d7
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -691,6 +691,10 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
}
}
if ( ! is_user_logged_in() && isset( $args['is_block'] ) && 1 === (int) $args['is_block'] && 'profile' === $mode ) {
return;
}
// for profiles only
if ( $mode == 'profile' && um_profile_id() ) {