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

Fixes - Child theme from site of network install not exported ? #94

Closed sultann closed 3 years ago

sultann commented 3 years ago

When the plugin executes the exporting process, is_child_theme() returns false even the site is using a child theme. So, replacing that function with get_template_directory() !== get_stylesheet_directory() solve the issue.

nicholasio commented 3 years ago

@sultann Thanks for the PR!