Make WordPress Core

Changeset 33384


Ignore:
Timestamp:
07/23/2015 04:59:04 AM (9 years ago)
Author:
markjaquith
Message:

Do not propagate empty passwords from the hidden form field.

fixes #32886

File:
1 edited

Legend:

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

    r33365 r33384  
    110110         */
    111111        pw_field2.on( 'input propertychange', function() {
    112             pw_field.val( pw_field2.val() );
    113             pw_field.trigger( 'propertychange' );
     112            if ( pw_field2.val().length > 0 ) {
     113                pw_field.val( pw_field2.val() );
     114                pw_field.trigger( 'propertychange' );
     115            }
    114116        } );
    115117
Note: See TracChangeset for help on using the changeset viewer.