CLI database commands assume multisite.
-
It appears that running wp redirection database upgrade fails if you’re not running multisite.
It looks like it’s down to this change
https://plugins.trac.wordpress.org/changeset/2042801/redirection/trunk/database/database.php
So the multi site behaviour of iterating across get_sites() and executing the callback is being applied in any CLI environment even if the site is not multisite.
The end result is that a non multi-site build gets a fatal error for a call to an undefined function get_sites.
I assume that the change is related to this item in the changelog “Fix database upgrade on multisite WP CLI”. Unfortunately it’s caused a regression for non multisite WP CLI.
The topic ‘CLI database commands assume multisite.’ is closed to new replies.