From af5ff9608a921022a5264e650fab737524f02499 Mon Sep 17 00:00:00 2001 From: Nikita Sinelnikov Date: Tue, 28 Mar 2023 12:44:33 +0300 Subject: [PATCH] - small fix and avoid PHP warning; --- includes/core/um-actions-register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/um-actions-register.php b/includes/core/um-actions-register.php index 785e3a68..793feb16 100644 --- a/includes/core/um-actions-register.php +++ b/includes/core/um-actions-register.php @@ -273,7 +273,7 @@ add_action( 'um_registration_complete', 'um_check_user_status', 100, 2 ); function um_submit_form_errors_hook__registration( $args ) { // Check for "\" in password. - if ( false !== strpos( wp_unslash( trim( $args['user_password'] ) ), '\\' ) ) { + if ( array_key_exists( 'user_password', $args ) && false !== strpos( wp_unslash( trim( $args['user_password'] ) ), '\\' ) ) { UM()->form()->add_error( 'user_password', __( 'Passwords may not contain the character "\\".', 'ultimate-member' ) ); } }