Make WordPress Core

Ticket #35257: 35257.diff

File 35257.diff, 535 bytes (added by adamsilverstein, 9 years ago)
  • src/wp-admin/js/updates.js

     
    524524                        e.preventDefault();
    525525                        var $button = $( e.target );
    526526
     527                        // Do nothing if the button is disabled.
     528                        if ( $button.hasClass( 'button-disabled' ) ) {
     529                                return;
     530                        }
     531
    527532                        if ( wp.updates.shouldRequestFilesystemCredentials && ! wp.updates.updateLock ) {
    528533                                wp.updates.requestFilesystemCredentials( e );
    529534                        }