Make WordPress Core

Changeset 58145


Ignore:
Timestamp:
05/14/2024 04:12:45 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Users: Reuse an existing string in the confirmation for unsaved changes in user profile.

Follow-up to [58137].

Fixes #40493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/user-profile.js

    r58137 r58145  
    492492                }
    493493                if ( originalFormContent !== $form.serialize() && ! isSubmitting ) {
    494                         return __( 'Changes that you made may not be saved.' );
     494                        return __( 'The changes you made will be lost if you navigate away from this page.' );
    495495                }
    496496        });
Note: See TracChangeset for help on using the changeset viewer.