Background of the issue:
I am trying to update the WPML plugin via the server's cron job using WP-CLI. The update process involves enabling maintenance mode, downloading the update from a specific URL, and then disabling maintenance mode. Here is the code snippet of the process: WordPress is up to date. Enabling Maintenance mode... Success: Activated Maintenance mode. Downloading update from https://wpml.org/?download=6088&version=4.7.6&site_key=HIDDEN&site_url=https%3A%2F%2FHIDDEN&wpml_version=4.7.4... Warning: Download failed. "Not Found" Disabling Maintenance mode... +----------------------------+-------------+-------------+--------+ | name | old_version | new_version | status | +----------------------------+-------------+-------------+--------+ | sitepress-multilingual-cms | 4.7.4 | 4.7.6 | Error | +----------------------------+-------------+-------------+--------+ Error: No plugins updated (1 failed). Theme already updated. Translations are up to date.
Symptoms:
The WPML plugin update fails with a 'Not Found' error when attempting to download the update from the provided URL. The error message indicates that no plugins were updated and one failed.
Questions:
Why is the old URL used in the plugin?
Why isn't the URL redirected at wpml.org?