PHP Class WP_CLI\LanguagePackUpgrader

Inheritance: extends Language_Pack_Upgrader
Show file Open project: wp-cli/wp-cli

Public Methods

Method Description
download_package ( string $package ) : string | WP_Error Caches the download, and uses cached if available.

Method Details

download_package() public method

Caches the download, and uses cached if available.
public download_package ( string $package ) : string | WP_Error
$package string The URI of the package. If this is the full path to an existing local file, it will be returned untouched.
return string | WP_Error The full path to the downloaded package file, or a WP_Error object.