$plugin_data =
get_plugin_data( $context . '/' .
$upgrader_item );
$item_name =
$plugin_data['Name'
];
// Add the current version so that it can be reported in the notification email.
$item->current_version =
$plugin_data['Version'
];
if ( empty( $item->current_version
) ) { $item->current_version = false;
} /* translators: %s: Plugin name. */
$skin->
feedback( __( 'Updating plugin: %s'
),
$item_name );
break;
case 'translation':
$language_item_name =
$upgrader->
get_name_for_update( $item );
/* translators: %s: Project name (plugin, theme, or WordPress). */
$item_name =
sprintf( __( 'Translations for %s'
),
$language_item_name );
/* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */
$skin->
feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…'
),
$language_item_name,
$item->language
) );
break;
} $allow_relaxed_file_ownership = false;
if ( 'core' ===
$type &&
isset( $item->new_files
) && !
$item->new_files
) { $allow_relaxed_file_ownership = true;
}