forked from 10up/MU-Migration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmu-migration.php
40 lines (34 loc) · 1.38 KB
/
mu-migration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Plugin Name: MU Migration
* Plugin URI: http://10up.com
* Description: A set of WP-CLI commands to support the migration of single WordPress instances over to multisite
* Version: 0.3.1
* Author: Nícholas André, 10up
* Author URI: http://10up.com
* Text Domain: mu-migration
* Domain Path: /languages
*
* @package TenUp\MU_Migration
*/
if ( ! defined( 'TENUP_MU_MIGRATION_VERSION' ) ) {
define( 'TENUP_MU_MIGRATION_VERSION', '0.3.2' );
define( 'TENUP_MU_MIGRATION_COMMANDS_PATH', 'includes/commands/' );
}
// Only load this plugin once and bail if WP CLI is not present
if ( ! defined( 'WP_CLI' ) ) {
return;
}
if ( version_compare( PHP_VERSION, '7.1.0' ) < 0 ) {
WP_CLI::error( 'MU-Migration requires PHP >= 7.1' );
}
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once( 'vendor/autoload.php' );
}
require_once( 'includes/helpers.php' );
require_once( TENUP_MU_MIGRATION_COMMANDS_PATH . 'class-mu-migration.php' );
require_once( TENUP_MU_MIGRATION_COMMANDS_PATH . 'class-mu-migration-base.php' );
require_once( TENUP_MU_MIGRATION_COMMANDS_PATH . 'class-mu-migration-export.php' );
require_once( TENUP_MU_MIGRATION_COMMANDS_PATH . 'class-mu-migration-import.php' );
require_once( TENUP_MU_MIGRATION_COMMANDS_PATH . 'class-mu-migration-posts.php' );
require_once( TENUP_MU_MIGRATION_COMMANDS_PATH . 'class-mu-migration-users.php' );