Repository navigation
feat(logging): add a search bar to the All Logs page - #864
Open
josephfusco wants to merge 4 commits into
Open
josephfusco wants to merge 4 commits into
josephfusco wants to merge 4 commits into
Conversation
Adds the standard WP_List_Table search box to the logs list. The term is matched with a LIKE against the message column and the top-level query in the context JSON, and composes with the date and level filters. The filter form now posts the filter nonce so that searches and filters are redirected to GET, which keeps them in the pagination and sorting links.
Contributor
📦 Plugin Artifacts Ready!Download from GitHub Actions run Available plugins:
See the "Artifacts" section at the bottom of the Actions run page |
add_query_arg() does not encode values, so a search term with "&", "#" or
"+" split into extra query args, and wp_safe_redirect() stripped characters
such as "$" and "{" that appear in GraphQL queries. Encode the filter and
search values in both the filter redirect and the bulk action redirect.
Adds wpunit coverage for quotes and backslashes in searched queries and for telling bulk actions apart from filter submits, plus a Playwright spec for searching the logs list and combining search with the level filter.
Moves the search and filter request keys to ViewLogsPage::FILTER_KEYS, so the filter redirect, the page-number check and the bulk action redirect use the same list. Documents the search box in the admin guide, and the search where condition in the custom log store guide.
josephfusco
marked this pull request as ready for review
October 30, 2026 19:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a search box to the All Logs page that matches the log message and GraphQL query, and keeps search and filters in the URL across pages. Sites that override the filters template now need to output the
wpgraphql_logging_noncefield.Closes #484
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with implementing the logs search bar.