#64146 closed enhancement (fixed)
Abilities API: Add the initial core abilities and categories registration.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | AI | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
Ticket to track the addition of initial default core abiltiies into the core.
They were proposed at https://github.com/WordPress/abilities-api/pull/108 with improvements in preparation for core at https://github.com/WordPress/abilities-api/pull/128.
Change History (10)
This ticket was mentioned in PR #10411 on WordPress/wordpress-develop by @jorgefilipecosta.
6 months ago
#1
- Keywords has-unit-tests added
#2
@
6 months ago
- Owner set to jorgefilipecosta
- Resolution set to fixed
- Status changed from new to closed
In 61063:
This ticket was mentioned in PR #10423 on WordPress/wordpress-develop by @gziolo.
6 months ago
#3
Trac ticket: https://core.trac.wordpress.org/ticket/64146
@gziolo commented on PR #10423:
6 months ago
#7
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/64146
Backports the initial WordPress core abilities proposed at https://github.com/WordPress/abilities-api/pull/108 with improvements in preparation for core at https://github.com/WordPress/abilities-api/pull/128, into Core WordPress.
## Testing
Verify the unit tests are passing.
Loaded the block editor, oppened the browser console, exectuted the following two calls:
wp.apiFetch({ path: wp.url.addQueryArgs('/wp-abilities/v1/abilities/core/get-site-info/run' ) } ).then(console.log); wp.apiFetch({ path: wp.url.addQueryArgs('/wp-abilities/v1/abilities/core/get-site-info/run', {input: {fields: ['name','url' ] } } ) } ).then(console.log);Verified things returned as expected.