Ticket #37512: trigger-update-delete-and-install3.diff
File trigger-update-delete-and-install3.diff, 2.1 KB (added by , 8 years ago) |
---|
-
wp-admin/js/updates.js
369 369 .attr( 'aria-label', message ) 370 370 .text( wp.updates.l10n.updating ); 371 371 372 $document.trigger( 'wp-plugin-updating' );372 $document.trigger( 'wp-plugin-updating', args ); 373 373 374 374 return wp.updates.ajax( 'update-plugin', args ); 375 375 }; … … 525 525 // Remove previous error messages, if any. 526 526 $card.removeClass( 'plugin-card-install-failed' ).find( '.notice.notice-error' ).remove(); 527 527 528 $document.trigger( 'wp-plugin-installing', args ); 529 528 530 return wp.updates.ajax( 'install-plugin', args ); 529 531 }; 530 532 … … 715 717 716 718 wp.a11y.speak( wp.updates.l10n.deleting, 'polite' ); 717 719 720 $document.trigger( 'wp-plugin-deleting', args ); 721 718 722 return wp.updates.ajax( 'delete-plugin', args ); 719 723 }; 720 724 … … 905 909 wp.a11y.speak( wp.updates.l10n.updatingMsg, 'polite' ); 906 910 $notice.text( wp.updates.l10n.updating ); 907 911 908 $document.trigger( 'wp-theme-updating' );912 $document.trigger( 'wp-theme-updating', args ); 909 913 910 914 return wp.updates.ajax( 'update-theme', args ); 911 915 }; … … 1038 1042 // Remove previous error messages, if any. 1039 1043 $( '.install-theme-info, [data-slug="' + args.slug + '"]' ).removeClass( 'theme-install-failed' ).find( '.notice.notice-error' ).remove(); 1040 1044 1045 $document.trigger( 'wp-theme-installing', args ); 1046 1041 1047 return wp.updates.ajax( 'install-theme', args ); 1042 1048 }; 1043 1049 … … 1167 1173 // Remove previous error messages, if any. 1168 1174 $( '.theme-info .update-message' ).remove(); 1169 1175 1176 $document.trigger( 'wp-theme-deleting', args ); 1177 1170 1178 return wp.updates.ajax( 'delete-theme', args ); 1171 1179 }; 1172 1180 … … 1973 1981 // Un-check the bulk checkboxes. 1974 1982 $bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false ); 1975 1983 1984 $document.trigger( 'wp-plugin-bulk-action-' + bulkAction, itemsSelected ); 1985 1976 1986 // Find all the checkboxes which have been checked. 1977 1987 itemsSelected.each( function( index, element ) { 1978 1988 var $checkbox = $( element ),