Skip to content

Remove logged-out AJAX hooks - #7

Merged
ajaydsouza merged 2 commits into
mainfrom
fix/remove-nopriv-ajax
Nov 2, 2026
Merged

ajaydsouza merged 2 commits into
mainfrom
fix/remove-nopriv-ajax

Conversation

@ajaydsouza

Copy link
Copy Markdown
Contributor

Access-control hardening. See the changelog in readme.txt for the entry.

The settings Tom Select search handlers were also registered as
wp_ajax_nopriv_ actions. They only serve admin settings screens, so
logged-out access is never needed.
sanitize_postids_field() kept any existing post ID, so a user saving a
post-ID field through the Metabox API could store IDs of private, draft
or trashed posts and revisions. It now also drops IDs the saving user
cannot read. CLI and cron saves, which have no user, keep the existing
check.
@ajaydsouza
ajaydsouza merged commit ea61752 into main Nov 2, 2026
6 checks passed
@ajaydsouza
ajaydsouza deleted the fix/remove-nopriv-ajax branch November 2, 2026 18:19
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.

1 participant