Do not display an error message when a plugin or theme being updated is found to already be up to date. Note the fact, and call it success. props solarissmoke. fixes #19752

git-svn-id: https://develop.svn.wordpress.org/trunk@21236 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2012-07-09 03:40:32 +00:00
parent d3039fdd15
commit fb97d0a0d9

View File

@ -496,11 +496,11 @@ class Plugin_Upgrader extends WP_Upgrader {
$this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true);
if ( !isset( $current->response[ $plugin ] ) ) {
$this->skin->set_result(false);
$this->skin->set_result(true);
$this->skin->before();
$this->skin->error('up_to_date');
$this->skin->feedback('up_to_date');
$this->skin->after();
$results[$plugin] = false;
$results[$plugin] = true;
continue;
}
@ -854,11 +854,11 @@ class Theme_Upgrader extends WP_Upgrader {
$this->skin->theme_info = $this->theme_info($theme);
if ( !isset( $current->response[ $theme ] ) ) {
$this->skin->set_result(false);
$this->skin->set_result(true);
$this->skin->before();
$this->skin->error('up_to_date');
$this->skin->feedback('up_to_date');
$this->skin->after();
$results[$theme] = false;
$results[$theme] = true;
continue;
}