Make WordPress Core

Ticket #34653: 34653.1.patch

File 34653.1.patch, 598 bytes (added by johnjamesjacoby, 10 years ago)
  • src/wp-admin/js/user-profile.js

    diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js
    index f98853c..305be68 100644
    a b  
    198198                // Disable the hidden inputs to prevent autofill and submission.
    199199                $pass1.prop( 'disabled', true );
    200200                $pass2.prop( 'disabled', true );
    201                 $pass1Text.prop( 'disabled', true );
     201                if ( 'undefined' !== typeof( $pass1Text ) ) {
     202                        $pass1Text.prop( 'disabled', true );
     203                }
    202204
    203205                $passwordWrapper = $pass1Row.find( '.wp-pwd' );
    204206                $generateButton  = $pass1Row.find( 'button.wp-generate-pw' );