PHP Class WP_CLI\LanguagePackUpgrader

Inheritance: extends Language_Pack_Upgrader
Afficher le fichier Open project: wp-cli/wp-cli

Méthodes publiques

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

Method Details

download_package() public méthode

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.
Résultat string | WP_Error The full path to the downloaded package file, or a WP_Error object.