• 3.1.1 dbccd5fb07

    v3.1.1 Stable

    javier released this 2026-08-07 11:58:37 +00:00 | 10 commits to main since this release

    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_callbacks, 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.
    Downloads