You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your use case and the problem you are facing
I often use wp db search to determine if a certain shortcode, class, etc. is in use. These search results include revisions, so it's possible that a search with 10 results only represents a single post. This makes the function significantly less useful for what feels like a pretty simple use case.
Describe the solution you'd like
The simplest solution would be some type of standalone flag so I could do something like wp db search 'string' --exclude-revisions.
My only hesitancy in suggesting this is wondering whether some more generalized way to include or exclude other things would be useful. On the flipside, a super powerful way to limit the search query would probably end up being much less user-friendly.
The text was updated successfully, but these errors were encountered:
Describe your use case and the problem you are facing
I often use
wp db search
to determine if a certain shortcode, class, etc. is in use. These search results include revisions, so it's possible that a search with 10 results only represents a single post. This makes the function significantly less useful for what feels like a pretty simple use case.Describe the solution you'd like
The simplest solution would be some type of standalone flag so I could do something like
wp db search 'string' --exclude-revisions
.My only hesitancy in suggesting this is wondering whether some more generalized way to include or exclude other things would be useful. On the flipside, a super powerful way to limit the search query would probably end up being much less user-friendly.
The text was updated successfully, but these errors were encountered: