-
Notifications
You must be signed in to change notification settings - Fork 44
Add --skip-tables=<tables> argument to exclude tables when performing search-replace
#48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
danielbachhuber
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @marksabbath !
Can you include functional tests for this change?
|
Added functional tests @danielbachhuber as you've requested. |
--skip-tables=<tables> argument to exclude tables when performing search-replace
Restrict some search-replace tests to wp_posts to avoid wp_options cl…
|
@marksabbath Can you merge master for #49? |
|
Done by 282570e @danielbachhuber |
|
|
||
| foreach ( $tables as $table ) { | ||
|
|
||
| if ( in_array( $table, $this->skip_tables ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to note that this wasn't removed when the array_diff() was added and made it redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot, #50
Add `--skip-tables=<tables>` argument to exclude tables when performing search-replace
Issue #31
--skip-tables