Ticket #37512: trigger-delete-and-install.diff
File trigger-delete-and-install.diff, 1.2 KB (added by , 8 years ago) |
---|
-
wp-admin/js/updates.js
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' ); 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' ); 721 718 722 return wp.updates.ajax( 'delete-plugin', args ); 719 723 }; 720 724 … … 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' ); 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' ); 1177 1170 1178 return wp.updates.ajax( 'delete-theme', args ); 1171 1179 }; 1172 1180