Skip to content

Tell Plugin Check why the report queue suppresses query filters - #22

Merged
henry-mosh merged 1 commit into
mainfrom
fix/plugin-check-suppress-filters
Dec 2, 2026
Merged

henry-mosh merged 1 commit into
mainfrom
fix/plugin-check-suppress-filters

Conversation

@henry-mosh

Copy link
Copy Markdown
Collaborator

Plugin Check 2.2.0 reports one error on the merged 1.5.0: Setting suppress_filters to true is prohibited, in the status reporter's queue query. The published 1.3.0 has none.

The setting is on purpose. Without it, a translation or visibility plugin filtering the query could hide queued posts, and their reports would never go out. This adds a phpcs:ignore with that reason on the line, the way DONOTCACHEPAGE is handled, so it travels with the code. Comment only: no change in behaviour.

Tested

  • Plugin Check 2.2.0 on WordPress 7.1.5, PHP 8.3: one error before, "No errors found" after.
  • PHPCS is clean on the changed file.

1.5.0 is not tagged or published yet. It ships from main once this is in.

🤖 Generated with Claude Code

Plugin Check 2.2.0 reports suppress_filters => true as an error. It is on
purpose: a translation or visibility plugin filtering the query would hide
queued posts, and their reports would never go out. The annotation sits on
the line, as with DONOTCACHEPAGE, so it travels with the code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@henry-mosh
henry-mosh merged commit 9e4d2b3 into main Dec 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant