10up / MU-Migration

This WP-CLI plugin makes the process of moving sites from single WordPress sites to a Multisite instance (or vice-versa) much easier. It exports everything into a zip package which can be used to automatically import it within the desired Multisite installation.
MIT License
329 stars 47 forks source link

Fix db export error. #59

Closed andreas-schneider closed 5 years ago

andreas-schneider commented 5 years ago

This PR changes how the "db export" is called and might fix the "Something went wrong while trying to export the database" error that some people including me get.

It replaces the launch_self() command with the runcommand(). Because runcommand() returns a different value on success, we also adapt the error handling.

nicholasio commented 5 years ago

@andreas-schneider Thanks for your PR, I made a expanded version of this PR in #61.