Skip to content

Fix flagged PHPCS throughout codebase#43

Merged
kadamwhite merged 7 commits into
mainfrom
fix-phpcs
Jun 23, 2026
Merged

Fix flagged PHPCS throughout codebase#43
kadamwhite merged 7 commits into
mainfrom
fix-phpcs

Conversation

@kadamwhite

@kadamwhite kadamwhite commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This will also serve as a test of the CI added in #42

Note

Specifically does not resolve get_block_wrapper_attributes warnings, which are a false positive, and will be resolved in humanmade/coding-standards#340
(Update, brought in HMCS 2.2.1 to resolve)

kadamwhite and others added 5 commits June 22, 2026 22:24
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
sanitize_key() and sanitize_text_field() are unsuitable for the search value: the former strips spaces and punctuation, the latter trims whitespace. The value is hand-sanitized over the following lines instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The suggested wp_strip_all_tags() always trim()s its result, which would defeat the deliberate whitespace preservation noted above.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread inc/namespace.php
Base automatically changed from phpcs to main June 23, 2026 17:57
@kadamwhite kadamwhite merged commit c7f48db into main Jun 23, 2026
1 check passed
@kadamwhite kadamwhite deleted the fix-phpcs branch June 23, 2026 18:24
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.

3 participants