wp-cli / language-command

Installs, activates, and manages language packs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update languages command (for plugins) contains a warning in the output

TimVevida opened this issue · comments

After upgrading WP to version 5.5 and updating the plugins, some plugins needed a language update. The WP-CLI command to update the languages contained a warning:

$ wp language plugin update --all
Updating 'Dutch' translation for Classic Editor 1.6...
Warning: Declaration of WP_CLI\LanguagePackUpgrader::download_package($package, $check_signatures = false) should be compatible with WP_Upgrader::download_package($package, $check_signatures = false, $hook_extra = Array) in phar:///[...]/wp-cli.phar/vendor/wp-cli/language-command/src/WP_CLI/LanguagePackUpgrader.php on line 112
Downloading translation from https://downloads.wordpress.org/translation/plugin/classic-editor/1.6/nl_NL.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the translation...
Translation updated successfully.
  • WP version: 5.5
  • WP-CLI version 2.4.0
  • Severity: minor

This has been fixed in #100.

Thank you!