mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fix profile form for guests
This commit is contained in:
@@ -119,7 +119,7 @@ if ( ! class_exists( 'um\core\Blocks' ) ) {
|
||||
|
||||
|
||||
public function um_forms_render( $atts ) {
|
||||
$shortcode = '[ultimatemember';
|
||||
$shortcode = '[ultimatemember widget="1"';
|
||||
|
||||
if ( isset( $atts['form_id'] ) && '' !== $atts['form_id'] ) {
|
||||
$shortcode .= ' form_id="' . $atts['form_id'] . '"';
|
||||
|
||||
@@ -691,6 +691,10 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! is_user_logged_in() && isset( $args['widget'] ) && 1 === (int) $args['widget'] && 'profile' === $mode ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// for profiles only
|
||||
if ( $mode == 'profile' && um_profile_id() ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user