Skip to content

fix(wporg): round-3 review fixes (REST caps, kses hardening, dynamic gettext) - #73

Merged
MhaWay merged 1 commit into
mainfrom
fix/wporg-round3
Sep 22, 2026
Merged

MhaWay merged 1 commit into
mainfrom
fix/wporg-round3

Conversation

@MhaWay

@MhaWay MhaWay commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Addresses round-3 automated review: page-scoped route capabilities, hook-output hardening, last variable-argument gettext call replaced with the core translation filter (catalog literals unchanged), version 0.1.2. Tested: 45/45 e2e, clean-install activation (tables via dbDelta, silent), phpunit/phpstan/phpcs green.

- REST: page-creation route now requires edit_pages, library delete delete_pages
  (previously only post capabilities were checked for page actions)
- REST: saved-pattern write/delete require manage_options (site-wide markup)
- Hardening: hook renderer passes third-party output through wp_kses_post
- i18n: tr() resolves via the core translation filter instead of a gettext
  call with a variable argument (last one flagged); catalog keeps POT literals
- Version 0.1.2 + readme changelog
@MhaWay
MhaWay merged commit a53d9c0 into main Sep 22, 2026
4 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.

2 participants