Wordpress update from 6.7.2~ynh1 to 6.8~ynh1 fails

What type of hardware are you using: Other(?)
What YunoHost version are you running: 12.0.16
What app is this about: Wordpress

Describe your issue

I tried to update Wordpress via the Ynuhost System update, but it failed. The log shows this fatal error:
PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in phar:///var/www/wordpress/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1334) : eval()'d code:87

Share relevant logs or error messages