Skip to content

Add Plugin Check Plugin (PCP) support - #65

Merged
fumikito merged 1 commit into
mainfrom
feature/pcp
Mar 11, 2026
Merged

Add Plugin Check Plugin (PCP) support#65
fumikito merged 1 commit into
mainfrom
feature/pcp

Conversation

@fumikito

Copy link
Copy Markdown
Member

Summary

  • .wp-env.json に PCP を追加し、npm run check でプラグインチェックを実行可能に
  • PCP が検出したエラーを修正(i18n domain 不足、エスケープ漏れ、sanitize 未設定、直接アクセス防止、load_plugin_textdomain 非推奨)
  • .distignore / .gitignore を整備し、配布物から不要ファイルを除外
  • Tested up to を 6.9 に更新

残存する既知のエラー(意図的にスキップ)

Closes #53

Test plan

  • npm run check が正常に完了することを確認
  • npm test が全テスト通過することを確認
  • プラグインの基本動作(タクソノミーページ作成・表示)に影響がないことを確認

🤖 Generated with Claude Code

- 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>
@fumikito
fumikito merged commit b13d3de into main Mar 11, 2026
9 checks passed
@fumikito
fumikito deleted the feature/pcp branch March 11, 2026 08:44
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.

PCPを導入する

1 participant