-
Notifications
You must be signed in to change notification settings - Fork 59
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
Implement exclude revision flag to remove revision results from the search #255
base: main
Are you sure you want to change the base?
Conversation
src/DB_Command.php
Outdated
* @see https://github.com/WordPress/wordpress-develop/blob/5.4.0/src/wp-includes/wp-db.php#L559-L572 | ||
* | ||
* @var string[] Array of SQL mode names that are incompatible with WordPress. | ||
*/ | ||
protected $sql_incompatible_modes = [ | ||
protected $sql_incompatible_modes = array( |
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.
Can you please revert changes in this and similar unrelated lines? For fixing code sniffer issues, please use composer run phpcbf
. It seems you are using separate sniffer rules here.
@imrraaj Also can you please add Behat test for this new feature? Ref - https://make.wordpress.org/cli/handbook/contributions/pull-requests/#functional-tests |
@ernilambar I'll do the necessary changes and I'll add the tests for the same |
I hope you merge this into the new version of the WP CLI soon. I am still looking for a workaround to exclude revisions while exporting the database, but I can't find it yet. |
This PR implements the exclude_revisions flag for
wp db search
command. This flag allows users to exclude revisions from the search results.PR fixes following issues:
wp db search
#156Usage