Upgrade/Install: Do not remove event handlers when trying to update a theme.

Previously, when clicking "Update now" the callbacks were erroneously removed. This prevented opening the filesystem credentials modal for a second time.

Fixes #37285.

git-svn-id: https://develop.svn.wordpress.org/trunk@38019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2016-07-09 11:42:04 +00:00
parent 180559f064
commit d1db1f5e10
1 changed files with 0 additions and 1 deletions

View File

@ -611,7 +611,6 @@ themes.view.Theme = wp.Backbone.View.extend({
updateTheme: function( event ) {
var _this = this;
event.preventDefault();
this.$el.off( 'click', '.update-message' );
wp.updates.maybeRequestFilesystemCredentials( event );