Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/js/_enqueues/admin/user-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@
isSubmitting = true;
});

$( '#your-profile' ).on( 'submit', function() {
return window.validateForm( this );
} );

$form = $( '#your-profile, #createuser' );
originalFormContent = $form.serialize();
});
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/user-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@
</td>
</tr>

<tr class="user-nickname-wrap">
<tr class="user-nickname-wrap form-required">
<th><label for="nickname"><?php _e( 'Nickname' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
<td>
<?php if ( IS_PROFILE_PAGE ) : ?>
Expand Down Expand Up @@ -556,7 +556,7 @@
<h2><?php _e( 'Contact Info' ); ?></h2>

<table class="form-table" role="presentation">
<tr class="user-email-wrap">
<tr class="user-email-wrap form-required">
<th><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
<td>
<?php if ( $profile_user->ID === $current_user->ID ) : ?>
Expand Down
Loading