Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a53d52a
Abilities API: Add the `core/terms-query`, `core/term-create`, `core/…
jorgefilipecosta Nov 20, 2026
bdf9c09
Abilities API: Sanitize the `slugs` filter of `core/terms-query`.
jorgefilipecosta Nov 30, 2026
a611145
Abilities API: Query terms in `core/terms-query` whatever kind of res…
jorgefilipecosta Nov 30, 2026
415c045
Abilities API: Describe how a term name is stored in the term abilities.
jorgefilipecosta Nov 30, 2026
6a58f9f
Abilities API: Refuse a post of a post type that is not exposed to ab…
jorgefilipecosta Nov 30, 2026
cb71906
Abilities API: Match the read check of the `post` filter of `core/ter…
jorgefilipecosta Nov 30, 2026
b96bf0d
Abilities API: Add the `core/content-create`, `core/content-update` a…
jorgefilipecosta Nov 16, 2026
ce8a343
Abilities API: Add the ticket number to the content write ability tests.
jorgefilipecosta Nov 16, 2026
64e4218
Abilities API: Simplify the content write abilities and their tests.
jorgefilipecosta Nov 16, 2026
306529c
Abilities API: Use a winter date in the content update ability tests.
jorgefilipecosta Nov 16, 2026
d8ceffb
Abilities API: Check the post capability in the content update and de…
jorgefilipecosta Nov 16, 2026
6c45432
Abilities API: Polish the content write abilities.
jorgefilipecosta Nov 16, 2026
a63f115
Abilities API: Simplify the content write abilities and merge duplica…
jorgefilipecosta Nov 24, 2026
007c3fe
Tests: Give the pages in the posts list table search test a stable or…
jorgefilipecosta Nov 24, 2026
e134e54
Abilities API: Clarify comments in the content write abilities.
jorgefilipecosta Nov 24, 2026
77796e3
Revert "Tests: Give the pages in the posts list table search test a s…
jorgefilipecosta Nov 24, 2026
ef1d021
Tests: Run the content query test that creates a high post ID last.
jorgefilipecosta Nov 24, 2026
1cc4bcb
Abilities API: Simplify the content write abilities.
jorgefilipecosta Nov 24, 2026
706f30a
Tests: Share the duplicated content write ability tests.
jorgefilipecosta Nov 24, 2026
c9e1cd7
Abilities API: Simplify the content write abilities and their tests.
jorgefilipecosta Nov 24, 2026
2c0ff8b
Tests: Use the shared constants in the content write ability tests.
jorgefilipecosta Nov 24, 2026
49970f0
Abilities API: Reject content write dates that name different times.
jorgefilipecosta Nov 24, 2026
da05194
Abilities API: Check the content write capabilities in the permission…
jorgefilipecosta Nov 26, 2026
915432c
Abilities API: Check the content write parent and pending slug in the…
jorgefilipecosta Nov 27, 2026
0bc8a3e
Abilities API: Correct the content ability docblocks and the pending …
jorgefilipecosta Nov 27, 2026
e5a1ffe
Tests: Remove content write ability checks that cannot fail and fix t…
jorgefilipecosta Nov 27, 2026
4ba6221
Abilities API: Look up the post once in the content update permission…
jorgefilipecosta Nov 27, 2026
fc191fb
Tests: Share the content create and update tests that write the same …
jorgefilipecosta Nov 27, 2026
979341e
Abilities API: Drop unchanged content attributes once and check the s…
jorgefilipecosta Nov 27, 2026
565986a
Merge the term abilities (PR 16102) into the content write abilities.
jorgefilipecosta Dec 1, 2026
071297f
Abilities API: Read and write the terms of a post in the content abil…
jorgefilipecosta Dec 1, 2026
f9a186f
Abilities API: Type the content write data and build the content inpu…
jorgefilipecosta Dec 1, 2026
eb37336
Tests: Share more content write test helpers and fold single tests in…
jorgefilipecosta Dec 1, 2026
4b32af3
Abilities API: Document that post types exposed with `show_in_abiliti…
jorgefilipecosta Dec 1, 2026
0c054cf
Abilities API: Read an empty slug on content create as not sent and r…
jorgefilipecosta Dec 1, 2026
47765f4
Abilities API: Check the capability to set a content author only for …
jorgefilipecosta Dec 2, 2026
94b2daf
Tests: Share the content test set-up, register the content abilities …
jorgefilipecosta Dec 2, 2026
c36f716
Abilities API: Drop the "Intentionally strict" prefix from the conten…
jorgefilipecosta Dec 2, 2026
8041373
Abilities API: Require `permanent` in `core/term-delete`.
jorgefilipecosta Dec 2, 2026
1404221
Merge PR 16028 (content write abilities) at c36f7169d14.
jorgefilipecosta Dec 2, 2026
4b2964b
Merge PR 16102 (term abilities) at 8041373708a.
jorgefilipecosta Dec 2, 2026
ec88bf4
Abilities API: Count every listed term in `core/terms-query` when emp…
jorgefilipecosta Dec 2, 2026
c9e8ce0
Merge PR 16102 (term abilities) at ec88bf4b303.
jorgefilipecosta Dec 2, 2026
0b0f3ad
Tests: Tag the new content terms tests with their own ticket.
jorgefilipecosta Dec 2, 2026
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
7 changes: 6 additions & 1 deletion src/wp-includes/abilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

require_once __DIR__ . '/abilities/class-wp-abilities-content.php';
require_once __DIR__ . '/abilities/class-wp-abilities-settings.php';
require_once __DIR__ . '/abilities/class-wp-abilities-terms.php';
require_once __DIR__ . '/abilities/class-wp-abilities-users.php';

/**
Expand Down Expand Up @@ -50,6 +51,7 @@ function wp_register_core_ability_categories(): void {
*
* @since 6.9.0
* @since 7.2.0 Added the `core/content-query`, `core/settings-get`, and `core/users-query` abilities.
* @since 7.3.0 Added the `core/content-create`, `core/content-update`, `core/content-delete`, `core/terms-query`, `core/term-create`, `core/term-update`, and `core/term-delete` abilities.
*
* @global wpdb $wpdb WordPress database abstraction object.
*/
Expand Down Expand Up @@ -377,6 +379,9 @@ function wp_register_core_abilities(): void {
// Register the user abilities (currently the read-only `core/users-query`).
( new WP_Abilities_Users() )->register();

// Register the content abilities (currently the read-only `core/content-query`).
// Register the content abilities (query, create, update, and delete).
( new WP_Abilities_Content() )->register();

// Register the term abilities: `core/terms-query`, `core/term-create`, `core/term-update`, and `core/term-delete`.
( new WP_Abilities_Terms() )->register();
}
Loading
Loading