Merge pull request #1469 from ultimatemember/fix/change_password_errors

A Warning if New Password is blank
This commit is contained in:
Mykyta Synelnikov
2024-02-29 15:01:15 +02:00
committed by GitHub
+1
View File
@@ -490,6 +490,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
if ( isset( $args['user_password'] ) && empty( $args['user_password'] ) ) {
UM()->form()->add_error( 'user_password', __( 'You must enter a new password', 'ultimate-member' ) );
return;
}
if ( isset( $args['user_password'] ) ) {