- fix register block fields for guests

This commit is contained in:
ashubawork
2023-05-09 15:42:15 +03:00
parent 0c7bfbf9d7
commit 7cfa39f893
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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 ) ) {
+2 -2
View File
@@ -136,9 +136,9 @@ if ( ! is_user_logged_in() ) {
* ?>
*/
do_action( 'um_after_form', $args ); ?>
</form>
</div>
</div>
</div>