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

[WIP] Various code fixes and optimisations #24

Closed noplanman closed 6 years ago

noplanman commented 7 years ago

Fix use class imports and WP class usage. Prefix array definitions for better IDE assistance. Don't call require_once as function and be more specific about the file location (using __DIR__).

(This is still very WIP, it's just to start a PR and a discussion thread 👍)

nicholasio commented 7 years ago

@noplanman are you still willing to work on this?

noplanman commented 7 years ago

@nicholasio For a general brush-up of the code, yes. But I really don't have time at the moment to learn the whole WP-CLI testing methods :grin:

nicholasio commented 7 years ago

Functional tests have been added in #29.

noplanman commented 7 years ago

@nicholasio Cool, will give this a revisit soon 👍