Fix colors for activated and updated plugins

If we don't have the updated class on the TR for he update message, then the message is red and red is scary and they just updated, they should be happy and celebrating, not scared. 

See #31608



Built from https://develop.svn.wordpress.org/trunk@31969


git-svn-id: http://core.svn.wordpress.org/trunk@31948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2015-04-01 21:31:26 +00:00
parent 57fce2e593
commit 786083fd8e
3 changed files with 6 additions and 2 deletions

View File

@ -207,6 +207,9 @@ window.wp = window.wp || {};
// Update the version number in the row.
var newText = $pluginRow.find('.plugin-version-author-uri').html().replace( response.oldVersion, response.newVersion );
$pluginRow.find('.plugin-version-author-uri').html( newText );
// Add updated class to update message parent tr
$pluginRow.next().addClass( 'updated' );
} else if ( 'plugin-install' === pagenow ) {
$updateMessage = $( '.plugin-card-' + response.slug ).find( '.update-now' );
$updateMessage.addClass( 'button-disabled' );
@ -228,6 +231,7 @@ window.wp = window.wp || {};
wp.updates.queueChecker();
};
/**
* On a plugin update error, update the UI appropriately.
*

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta3-31968';
$wp_version = '4.2-beta3-31969';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.