Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ registration under the old name are **rejected** — no exceptions, ever.
when tags exist, else the `0.1.0` seed).
- `verify:coreify` — the coreify round-trip gate (`tools/coreify.php
--check`), for every tier-core ability with a transform profile
(`core/content-query`, `core/settings-get`): reverse of the trunk fixture
followed by forward must reproduce the original core file, and the
reverse output must match the hand-port (`src/Content/Content_Query.php`,
`src/Settings/Settings_Get.php`), modulo whitespace and comments. A new
(`core/content-query`, `core/settings-get`, `core/users-query`): reverse
of the trunk fixture followed by forward must reproduce the original core
file, and the reverse output must match the hand-port
(`src/Content/Content_Query.php`, `src/Settings/Settings_Get.php`,
`src/Users/Users_Query.php`), modulo whitespace and comments. A new
tier-core backport adds its profile to `PROFILES` in `tools/coreify.php`.
- PHPUnit on both environments — WordPress trunk and latest stable. Both
ship the Abilities API in core (the 6.9+ support floor; stable pre-7.2
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Full rules, the promotion path, and the rename protocol are in
|---|---|---|---|
| `core/content-query` | core | content | Backport of the readonly content query ability landed in WordPress core 7.2 (`core_since: 7.2`). On 7.2+ core provides it and the Registrar skips it; on 6.9–7.1 the package serves it under the same name. Requires the `show_in_abilities` support feature (polyfilled where core lacks it). |
| `core/settings-get` | core | site | Backport of the readonly settings get ability landed in WordPress core 7.2 (`core_since: 7.2`). On 7.2+ core provides it and the Registrar skips it; on 6.9–7.1 the package serves it under the same name. Requires the `setting_show_in_abilities` support feature (polyfilled where core lacks it: core's own settings are flagged and registered before the ability reads them, as on 7.2). |
| `core/users-query` | core | user | Backport of the readonly users query ability landed in WordPress core 7.2 (`core_since: 7.2`). On 7.2+ core provides it and the Registrar skips it; on 6.9–7.1 the package serves it under the same name. Needs no support feature beyond the Abilities API. |
| `core/content-create` | stable | content | Port of the content create ability from [WordPress/ai PR #1025](https://github.com/WordPress/ai/pull/1025) (`core_since: null` — flips to tier `core` when it lands in WordPress core). Creates posts of types exposed to abilities under the field names `core/content-query` returns. |
| `core/content-update` | stable | content | Port of the content update ability from [WordPress/ai PR #1025](https://github.com/WordPress/ai/pull/1025) (`core_since: null` — flips to tier `core` when it lands in WordPress core). Updates a post by ID; fields left out keep their current values. |
| `core/content-delete` | stable | content | Port of the content delete ability from [WordPress/ai PR #1025](https://github.com/WordPress/ai/pull/1025) (`core_since: null` — flips to tier `core` when it lands in WordPress core). Trashes a post by ID, or deletes it permanently with `force`. |
Expand All @@ -94,8 +95,8 @@ Full rules, the promotion path, and the rename protocol are in

Planned, **not** available in the current package: the MCP adapter consuming
this package via `Registrar::register_all()`; further write abilities
beyond the content trio; the `core/users-query` backport; the WordPress AI
plugin migration; Packagist publishing.
beyond the content trio; the WordPress AI plugin migration; Packagist
publishing.

## Development

Expand Down
4 changes: 4 additions & 0 deletions src/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ final class Categories {
'label' => 'Site',
'description' => 'Abilities that retrieve or modify site information and settings.',
),
'user' => array(
'label' => 'User',
'description' => 'Abilities that retrieve or modify user information and settings.',
),
'content' => array(
'label' => 'Content',
'description' => 'Abilities that retrieve or manage posts and other content.',
Expand Down
12 changes: 12 additions & 0 deletions src/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ public static function all(): array {
// Landed in trunk as b6512b1e8c (Trac #64605), developed in this PR.
'proposal' => 'https://github.com/WordPress/wordpress-develop/pull/12141',
),
'core/users-query' => array(
'name' => 'core/users-query',
'class' => Users\Users_Query::class,
'category' => 'user',
'tier' => self::TIER_CORE,
'min_wp_version' => '6.9',
'core_since' => '7.2',
'requires' => array(),
'renamed_from' => null,
// Landed in trunk as 39981fd0fe (Trac #64657), developed in this PR.
'proposal' => 'https://github.com/WordPress/wordpress-develop/pull/10775',
),
/*
* The write trio below is a faithful port of WordPress/ai PR #1025
* (author @jorgefilipecosta), on the package's dotted field paths.
Expand Down
Loading
Loading