WordPress.org

Make WordPress Core

Ticket #37598: 37598.patch

File 37598.patch, 1.0 KB (added by ocean90, 5 years ago)
  • src/wp-admin/js/theme.js

     
    799799
    800800                wp.updates.maybeRequestFilesystemCredentials( event );
    801801
    802                 $( document ).one( 'wp-delete-theme-success', function( event, response ) {
     802                $( document ).one( 'wp-theme-delete-success', function( event, response ) {
    803803                        _this.$el.find( '.close' ).trigger( 'click' );
    804804                        $( '[data-slug="' + response.slug + '"' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() {
    805805                                $( this ).remove();
  • src/wp-admin/js/updates.js

     
    12431243
    12441244                wp.a11y.speak( wp.updates.l10n.deleted, 'polite' );
    12451245
    1246                 $document.trigger( 'wp-delete-theme-success', response );
     1246                $document.trigger( 'wp-theme-delete-success', response );
    12471247        };
    12481248
    12491249        /**