Make WordPress Core

Ticket #51476: 51476.patch

File 51476.patch, 1.7 KB (added by ravipatel, 3 years ago)

Updated a pathch with js & css code

  • src/js/_enqueues/wp/updates.js

     
    440440         */
    441441        wp.updates.updatePlugin = function( args ) {
    442442                var $updateRow, $card, $message, message;
    443 
     443                var $adminBarUpdates  = $( '#wp-admin-bar-updates' );
     444               
    444445                args = _.extend( {
    445446                        success: wp.updates.updatePluginSuccess,
    446447                        error: wp.updates.updatePluginError
     
    447448                }, args );
    448449
    449450                if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
    450                         $updateRow = $( 'tr[data-plugin="' + args.plugin + '"]' );
     451                        $adminBarUpdates.addClass( 'updating-message' );
     452                       
     453                        $updateRow = $( 'tr[data-plugin="' + args.plugin + '"]' );
    451454                        $message   = $updateRow.find( '.update-message' ).removeClass( 'notice-error' ).addClass( 'updating-message notice-warning' ).find( 'p' );
    452455                        message    = sprintf(
    453456                                /* translators: %s: Plugin name and version. */
     
    477480
    478481                $document.trigger( 'wp-plugin-updating', args );
    479482
    480                 return wp.updates.ajax( 'update-plugin', args );
     483                //return wp.updates.ajax( 'update-plugin', args );
    481484        };
    482485
    483486        /**
  • src/wp-includes/css/admin-bar.css

     
    588588        top: 2px;
    589589}
    590590
     591#wpadminbar #wp-admin-bar-updates.updating-message .ab-icon:before {
     592        display: inline-block;
     593        animation: rotation 2s infinite linear;
     594}
     595
    591596/**
    592597 * Search
    593598 */