v3.1.1
This commit is contained in:
parent
1a826e8404
commit
dbccd5fb07
1 changed files with 120 additions and 6 deletions
|
|
@ -1,5 +1,22 @@
|
|||
== Changelog ==
|
||||
|
||||
= 3.1.1 [2026-07-18] =
|
||||
|
||||
**Security**
|
||||
|
||||
* Tightened the ACL on the two REST endpoints introduced in 3.1.0. The original release used `__return_true` for both `permission_callback`s, which would have leaked the full noindex configuration to anyone hitting `/wp-json/noindex-seo/v1/settings`. Fixed callbacks:
|
||||
- `/settings` now requires `manage_options`. The consolidated array reveals the site's full SEO strategy in a single response, so it is admin-only.
|
||||
- `/effective?post_id=N` is public only for posts with `post_status=publish` and no password (the directives for those would appear in the HTML `<meta>` tag of the rendered page anyway). Drafts, private posts, scheduled posts, password-protected posts, and trashed posts require `edit_post` capability for the specific post.
|
||||
|
||||
**Compatibility**
|
||||
|
||||
* WordPress: 5.7 - 7.1
|
||||
* PHP: 7.2 - 8.5
|
||||
|
||||
**Tests**
|
||||
|
||||
* Added 4 tests covering the new permission model: unauthenticated rejected on `/settings`, editor rejected on `/settings`, unauthenticated/subscriber rejected on `/effective` for drafts, public access preserved on `/effective` for published posts.
|
||||
|
||||
= 3.1.0 [2026-07-18] =
|
||||
|
||||
Closes the three remaining HIGH-priority items from the original gap audit.
|
||||
|
|
|
|||
Loading…
Reference in a new issue