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

Ensure static zip file structure #19

Closed noplanman closed 7 years ago

noplanman commented 7 years ago

Make sure the zip file structure is the same, no matter where the wp-cli command was called from.

The folders in the zip file will now always have the correct structure:

- wp-content
  - plugins
  - themes
  - uploads

@nicholasio I was thinking of omitting the wp-content and having the subfolders directly on the root level, but opted to leave it as is. This ensures that all existing exports will still work seamlessly, without the need of any code fixes to accommodate that.

nicholasio commented 7 years ago

@noplanman Thanks for PR. I'm gonna run a few tests before merging. But this seems good to me