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

Import from Multisite: Uploads paths are only updated when url is also changed #97

Open reikjarloekl opened 2 years ago

reikjarloekl commented 2 years ago

Describe the bug When importing from a multisite, the uploads path is only updated (e.g., from uploads/sites/n to uploads/) when the url is changed as well.

Steps to Reproduce

  1. Export a site from a multisite
  2. Import the site into another wordpress instance without setting old_url and/ or new_url
  3. uploads paths are not updated in database

Expected behavior

Uploads paths should be updated even when url remains the same.