WordPress 7.2 tightens the Abilities API: declared capabilities and schema-based input sanitization
The Abilities API, WordPress's foundation for exposing actions to AI agents, gains a required_capabilities argument in 7.2 and sanitizes input against the schema for both PHP and REST calls, returning a 400 on failure. JSON output now keeps the declared shape, including empty objects. Worth checking if your plugins register their own abilities.