Users: Reuse an existing string in the confirmation for unsaved changes in user profile.
Follow-up to [58137]. Fixes #40493. Built from https://develop.svn.wordpress.org/trunk@58145 git-svn-id: http://core.svn.wordpress.org/trunk@57610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -491,7 +491,7 @@
|
||||
return __( 'Your new password has not been saved.' );
|
||||
}
|
||||
if ( originalFormContent !== $form.serialize() && ! isSubmitting ) {
|
||||
return __( 'Changes that you made may not be saved.' );
|
||||
return __( 'The changes you made will be lost if you navigate away from this page.' );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
2
wp-admin/js/user-profile.min.js
vendored
2
wp-admin/js/user-profile.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user