Ability to Exclude Revisions from `wp db search`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start at the wp db search command entry point and trace how its options and database search are defined. Review the existing command tests and documentation, if available; done means an --exclude-revisions option works and matching revision records are omitted from results.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 76
- Fork
- 73
- Merge medio
- 9h 31m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wp-cli/db-command
-
command:db-size scope:documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
wp-cli/db-command#348 · 1 commento ·
-
bug command:db-query
wp-cli/db-command#319 · 5 commenti · 1 reazione · 2 assegnatari ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 commenti · 1 reazione · 2 assegnatari ·
-
bug command:db-export
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
wp-cli/db-command#289 · 2 commenti ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
wp-cli/db-command#327 · 8 commenti · 2 reazioni ·
Tutte le issue di wp-cli/db-command
Issue simili
-
priority: p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Automattic/static-site-importer#1767 ·