/* 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;
} // Boom, this site's about to get a whole new splash of paint!
$upgrade_result =
$upgrader->
upgrade( $upgrader_item,
array
( 'clear_update_cache' => false,
// Always use partial builds if possible for core updates.
'pre_check_md5' => false,
// Only available for core updates.
'attempt_rollback' => true,
// Allow relaxed file ownership in some scenarios.
'allow_relaxed_file_ownership' =>
$allow_relaxed_file_ownership,
) );