mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fix register block fields for guests
This commit is contained in:
@@ -2087,6 +2087,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
if ( empty( $_um_profile_id ) ) {
|
||||
$_um_profile_id = um_user( 'ID' );
|
||||
}
|
||||
if ( ! is_user_logged_in() ) {
|
||||
$_um_profile_id = 0;
|
||||
}
|
||||
|
||||
// get whole field data
|
||||
if ( isset( $data ) && is_array( $data ) ) {
|
||||
|
||||
@@ -136,9 +136,9 @@ if ( ! is_user_logged_in() ) {
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_after_form', $args ); ?>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user