Fix a issue where the translation name isn't showing up in the Background Update emails, caused by a PHP Warning/missing variable in [25806]. See #18200

git-svn-id: https://develop.svn.wordpress.org/trunk@25812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2013-10-16 17:06:58 +00:00
parent 549029393f
commit aa5c907e40
1 changed files with 3 additions and 2 deletions

View File

@ -1700,8 +1700,9 @@ class WP_Automatic_Upgrader {
$skin->feedback( __( 'Updating plugin: %s' ), $item_name );
break;
case 'language':
$name = $upgrader->get_name_for_update( $item );
$skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $name, $item->language ) );
$language_item_name = $upgrader->get_name_for_update( $item );
$item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
$skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) );
break;
}