Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd078de

Browse files
committed
Remove Outlandish specific secret sauce that isn't going to be used
1 parent5d44318 commitcd078de

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

‎class/command.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public function migrate( $args, $assoc_args ) {
5858
* [--migrate-tables=<CSV of tables to migrate>]
5959
* : Comma separated list of tables to migrate from the remote WordPress to locally.
6060
*
61-
* If you set this to `outlandish` it will migrate the tables we would typically expect from WordPress.
62-
*
6361
* [--exclude-post-types=<CSV of tables to migrate>]
6462
* : Comma separated list of post types to exclude from migrate from the remote WordPress to locally.
6563
*

‎class/wpsdb-cli.php‎

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,29 +115,9 @@ function cli_create_profile( $name, $assoc_args ) {
115115
if (isset($assoc_args['migrate-tables'] ) ) {
116116
$new_profile["table_migrate_option"] ='migrate_select';
117117

118-
if ($new_profile["migrate-tables"] ==='outlandish' ) {
119-
WP_CLI::log(__('Selecting Outlandish default WordPress tables for migraton.','wp-sync-db-cli' ) );
120-
$new_profile["select_tables"] =array(
121-
"wp_commentmeta",
122-
"wp_comments",
123-
"wp_links",
124-
"wp_options",
125-
"wp_p2p",
126-
"wp_p2pmeta",
127-
"wp_postmeta",
128-
"wp_posts",
129-
"wp_term_relationships",
130-
"wp_term_taxonomy",
131-
"wp_termmeta",
132-
"wp_terms",
133-
"wp_usermeta",
134-
"wp_users",
135-
);
136-
}else {
137-
$new_profile["select_tables"] =explode(',',$assoc_args['migrate-tables'] );
138-
WP_CLI::log(__('The following tables are selected for migration:','wp-sync-db-cli' ) );
139-
$this->log_list($new_profile["select_tables"] );
140-
}
118+
$new_profile["select_tables"] =explode(',',$assoc_args['migrate-tables'] );
119+
WP_CLI::log(__('The following tables are selected for migration:','wp-sync-db-cli' ) );
120+
$this->log_list($new_profile["select_tables"] );
141121
}
142122

143123
$wpsdb_settings['profiles'][] =$new_profile;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp