Ticket #37531: 37531.diff
File 37531.diff, 1.9 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/updates.js
526 526 $card.removeClass( 'plugin-card-install-failed' ).find( '.notice.notice-error' ).remove(); 527 527 528 528 $document.trigger( 'wp-plugin-installing', args ); 529 529 530 530 return wp.updates.ajax( 'install-plugin', args ); 531 531 }; 532 532 … … 718 718 wp.a11y.speak( wp.updates.l10n.deleting, 'polite' ); 719 719 720 720 $document.trigger( 'wp-plugin-deleting', args ); 721 721 722 722 return wp.updates.ajax( 'delete-plugin', args ); 723 723 }; 724 724 … … 1043 1043 $( '.install-theme-info, [data-slug="' + args.slug + '"]' ).removeClass( 'theme-install-failed' ).find( '.notice.notice-error' ).remove(); 1044 1044 1045 1045 $document.trigger( 'wp-theme-installing', args ); 1046 1046 1047 1047 return wp.updates.ajax( 'install-theme', args ); 1048 1048 }; 1049 1049 … … 1174 1174 $( '.theme-info .update-message' ).remove(); 1175 1175 1176 1176 $document.trigger( 'wp-theme-deleting', args ); 1177 1177 1178 1178 return wp.updates.ajax( 'delete-theme', args ); 1179 1179 }; 1180 1180 … … 1525 1525 * @returns {boolean} Whether there is an error that needs to be handled or not. 1526 1526 */ 1527 1527 wp.updates.maybeHandleCredentialError = function( response, action ) { 1528 if ( response.errorCode && 'unable_to_connect_to_filesystem' === response.errorCode ) {1528 if ( wp.updates.shouldRequestFilesystemCredentials && response.errorCode && 'unable_to_connect_to_filesystem' === response.errorCode ) { 1529 1529 wp.updates.credentialError( response, action ); 1530 1530 return true; 1531 1531 } … … 1982 1982 $bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false ); 1983 1983 1984 1984 $document.trigger( 'wp-' + type + '-bulk-' + bulkAction, itemsSelected ); 1985 1985 1986 1986 // Find all the checkboxes which have been checked. 1987 1987 itemsSelected.each( function( index, element ) { 1988 1988 var $checkbox = $( element ),