Add Plugin Check Plugin (PCP) support - #65
Merged
Merged
Conversation
- Add PCP to .wp-env.json and npm run check script - Fix i18n: add missing text domain, remove deprecated load_plugin_textdomain - Fix escaping: esc_url for get_edit_term_link, wp_kses/esc_html for output - Fix sanitization: add sanitize_callback to register_setting - Add direct file access protection to functions.php and template-parts - Update Tested up to 6.9 - Improve .distignore and .gitignore for cleaner distribution Closes #53 Co-authored-by: Claude <noreply@anthropic.com>
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.
Summary
.wp-env.jsonに PCP を追加し、npm run checkでプラグインチェックを実行可能にload_plugin_textdomain非推奨).distignore/.gitignoreを整備し、配布物から不要ファイルを除外残存する既知のエラー(意図的にスキップ)
src/配下の PSR クラスのmissing_direct_file_access_protection— PSR-0 はクラス定義のみで副作用なし。PCP 側にイシューを報告済み: Proposal: Support settings file e.g. .pcprc.json WordPress/plugin-check#1210.distignoreで配布時に除外されるファイルCloses #53
Test plan
npm run checkが正常に完了することを確認npm testが全テスト通過することを確認🤖 Generated with Claude Code