Make WordPress Core

Ticket #37216: trigger-on-theme-update.patch

File trigger-on-theme-update.patch, 491 bytes (added by DavidAnderson, 8 years ago)

Trigger event when a shiny theme update is requested

  • wp-admin/js/updates.js

     
    867867                        error: wp.updates.updateThemeError
    868868                }, args );
    869869
     870                $( document ).trigger( 'wp-updates-theme-update' , args );
     871               
    870872                if ( 'themes-network' === pagenow ) {
    871873                        $notice = $( '[data-slug="' + args.slug + '"]' ).find( '.update-message' ).addClass( 'updating-message' ).find( 'p' );
    872874