[wp-trac] [WordPress Trac] #65355: Abilities API: Unify schema conventions across core abilities
WordPress Trac
noreply at wordpress.org
Wed May 27 08:51:35 UTC 2026
#65355: Abilities API: Unify schema conventions across core abilities
----------------------------+----------------------
Reporter: gziolo | Owner: (none)
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 7.1
Component: Abilities API | Version: 6.9
Severity: normal | Keywords:
Focuses: |
----------------------------+----------------------
The three core abilities shipped in 6.9.0 (`core/get-site-info`, `core
/get-user-info`, `core/get-environment-info`) have drifted in small but
visible ways. This ticket proposes a quality pass so they share a single
blueprint.
== Proposed Changes ==
* Every output property should declare both `title` and `description`,
reusing existing WP Admin translations where possible.
* `core/get-environment-info` should gain the optional `fields` input
parameter already supported by the other two.
* `core/get-user-info` should be exposed via REST (`show_in_rest =>
true`) so clients can discover it under `/wp-json/wp-
abilities/v1/abilities`.
* Property titles should be normalized to Title Case.
Each change should be accompanied by unit tests so the unified contract is
enforced going forward.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65355>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list