Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
787ddad
Abilities API: Add the `core/content-create`, `core/content-update` a…
jorgefilipecosta Nov 16, 2026
9157feb
Abilities API: Add the ticket number to the content write ability tests.
jorgefilipecosta Nov 16, 2026
acd6df5
Abilities API: Simplify the content write abilities and their tests.
jorgefilipecosta Nov 16, 2026
799eb36
Abilities API: Use a winter date in the content update ability tests.
jorgefilipecosta Nov 16, 2026
6386a17
Abilities API: Check the post capability in the content update and de…
jorgefilipecosta Nov 16, 2026
c2efdbd
Abilities API: Polish the content write abilities.
jorgefilipecosta Nov 16, 2026
33f5577
Abilities API: Simplify the content write abilities and merge duplica…
jorgefilipecosta Nov 24, 2026
04bd5c4
Tests: Give the pages in the posts list table search test a stable or…
jorgefilipecosta Nov 24, 2026
6a627d4
Abilities API: Clarify comments in the content write abilities.
jorgefilipecosta Nov 24, 2026
297370a
Revert "Tests: Give the pages in the posts list table search test a s…
jorgefilipecosta Nov 24, 2026
9036d3c
Tests: Run the content query test that creates a high post ID last.
jorgefilipecosta Nov 24, 2026
74a5c3b
Abilities API: Simplify the content write abilities.
jorgefilipecosta Nov 24, 2026
9cb7615
Tests: Share the duplicated content write ability tests.
jorgefilipecosta Nov 24, 2026
e7465ce
Abilities API: Simplify the content write abilities and their tests.
jorgefilipecosta Nov 24, 2026
cc7e2ef
Abilities API: Leave the Unix epoch date fix to its own ticket.
jorgefilipecosta Nov 24, 2026
b3532ac
Tests: Use the shared constants in the content write ability tests.
jorgefilipecosta Nov 24, 2026
69f9d19
Abilities API: Reject content write dates that name different times.
jorgefilipecosta Nov 24, 2026
ca76e01
Abilities API: Check the content write capabilities in the permission…
jorgefilipecosta Nov 26, 2026
2bd593e
Abilities API: Check the content write parent and pending slug in the…
jorgefilipecosta Nov 27, 2026
118c687
Abilities API: Correct the content ability docblocks and the pending …
jorgefilipecosta Nov 27, 2026
c7c7bfc
Tests: Remove content write ability checks that cannot fail and fix t…
jorgefilipecosta Nov 27, 2026
d8870d9
Abilities API: Look up the post once in the content update permission…
jorgefilipecosta Nov 27, 2026
da95e0d
Tests: Share the content create and update tests that write the same …
jorgefilipecosta Nov 27, 2026
7622fa0
Abilities API: Drop unchanged content attributes once and check the s…
jorgefilipecosta Nov 27, 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
3 changes: 2 additions & 1 deletion src/wp-includes/abilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,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`, and `core/content-delete` abilities.
*
* @global wpdb $wpdb WordPress database abstraction object.
*/
Expand Down Expand Up @@ -377,6 +378,6 @@ 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();
}
1,119 changes: 1,069 additions & 50 deletions src/wp-includes/abilities/class-wp-abilities-content.php

Large diffs are not rendered by default.

Loading
Loading