Ability to Exclude Revisions from `wp db search`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 76
- Forks
- 73
- Merge medio
- 9 h 31 min
- PR fusionados (30 d)
- 2
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wp-cli/db-command
-
command:db-size scope:documentation
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
wp-cli/db-command#348 · 1 comentario ·
-
bug command:db-query
wp-cli/db-command#319 · 5 comentarios · 1 reacción · 2 asignados ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 comentarios · 1 reacción · 2 asignados ·
-
bug command:db-export
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
wp-cli/db-command#289 · 2 comentarios ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
wp-cli/db-command#327 · 8 comentarios · 2 reacciones ·
Todos los issues de wp-cli/db-command
Issues similares
-
priority: p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nextcloud/fulltextsearch#1011 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
phpstan/phpstan-doctrine#794 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Automattic/static-site-importer#1767 ·