Skip to content

fix: satisfy strict phpcs NotPrepared sniff in count_active_jobs#2797

Merged
chubes4 merged 1 commit into
mainfrom
fix-count-active-lint
Jun 26, 2026
Merged

fix: satisfy strict phpcs NotPrepared sniff in count_active_jobs#2797
chubes4 merged 1 commit into
mainfrom
fix-count-active-lint

Conversation

@chubes4

@chubes4 chubes4 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Release preflight lint (stricter phpcs config than local) flagged the nested get_var( wpdb->prepare(...) ) in count_active_jobs() (added in #2790). Refactor to the codebase's established split pattern — prepare() into a $query var with the InterpolatedNotPrepared disable/enable block, then get_var($query) with the NotPrepared ignore — matching the adjacent get_jobs_count(). Behavior unchanged; query was already fully prepared with placeholders.

@chubes4 chubes4 merged commit dbd3ba4 into main Jun 26, 2026
2 checks passed
@chubes4 chubes4 deleted the fix-count-active-lint branch June 26, 2026 14:56
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