When restoring a backup using UpDraft Plus we used to login to the WordPress instance and execute the following commands to change the siteurl
and home
options (using the wp-cli):
wp option update home 'https://<our dns>'
wp option update siteurl 'https://<our dns>'
This worked when using WordPress 4.3 but after upgrading to 4.4 setting the siteurl
and home
options doesn’t seem to have any effect. Has this changed in version 4.4 and if so how do I go about changing it (preferably using the wordpress cli)?
You need to upgrade your WP CLI client. From their blog:
It’s not that the
home
andsiteurl
options changed, it’s about how WP CLI is working and how it include files to build his own wp-settings.php. Considering there have been a lot of file adds in the last version, WP CLI need to be updated to work with this new files.