Make WordPress Core

Ticket #51476: 51476-new.patch

File 51476-new.patch, 1.5 KB (added by ravipatel, 4 years ago)

latest 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. */
  • 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 */