Make WordPress Core

Ticket #37598: 37598-install.patch

File 37598-install.patch, 1.4 KB (added by olarmarius, 7 years ago)

Also the patch for install hook bug

  • wp-admin/js/theme.js

    diff -Naur wordpress-4.6-RC1/wp-admin/js/theme.js wordpress-install/wp-admin/js/theme.js
    old new  
    597597
    598598                wp.updates.maybeRequestFilesystemCredentials( event );
    599599
    600                 $( document ).on( 'wp-install-theme-success', function( event, response ) {
     600                $( document ).on( 'wp-theme-install-success', function( event, response ) {
    601601                        if ( _this.model.get( 'id' ) === response.slug ) {
    602602                                _this.model.set( { 'installed': true } );
    603603                        }
     
    972972
    973973                wp.updates.maybeRequestFilesystemCredentials( event );
    974974
    975                 $( document ).on( 'wp-install-theme-success', function() {
     975                $( document ).on( 'wp-theme-install-success', function() {
    976976                        _this.model.set( { 'installed': true } );
    977977                } );
    978978
  • wp-admin/js/updates.js

    diff -Naur wordpress-4.6-RC1/wp-admin/js/updates.js wordpress-install/wp-admin/js/updates.js
    old new  
    10561056                var $card = $( '.wp-full-overlay-header, [data-slug=' + response.slug + ']' ),
    10571057                        $message;
    10581058
    1059                 $document.trigger( 'wp-install-theme-success', response );
     1059                $document.trigger( 'wp-theme-install-success', response );
    10601060
    10611061                $message = $card.find( '.button-primary' )
    10621062                        .removeClass( 'updating-message' )