Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
cf5ca95
Abilities API: Add a core/content ability
jorgefilipecosta Jun 16, 2026
0646c30
Abilities API: apply core/settings review feedback to core/content.
jorgefilipecosta Jun 17, 2026
cdcc7a1
Abilities API: make WP_Content_Abilities a final instance class.
jorgefilipecosta Jun 23, 2026
bac1a8a
Abilities API: model the core/content input as two mutually exclusive…
jorgefilipecosta Jun 23, 2026
0f721d3
Abilities API: Require edit access for content ability
jorgefilipecosta Jun 23, 2026
a258d81
Abilities API: Align content input schema defaults
jorgefilipecosta Jun 23, 2026
132c6aa
Abilities API: Expose readable content fields
jorgefilipecosta Jun 24, 2026
7dd1a04
Tests: Update content ability REST permissions
jorgefilipecosta Jun 24, 2026
fb0de9a
Abilities API: Address content review follow-ups
jorgefilipecosta Jun 24, 2026
0bb7507
Abilities API: Rename content read ability
jorgefilipecosta Jun 29, 2026
890faaf
Abilities API: Split read content modes
jorgefilipecosta Jun 29, 2026
d770395
Tests: Cover read content ability modes
jorgefilipecosta Jun 29, 2026
646c1b9
Abilities API: Sync read content ability with plugin
jorgefilipecosta Jul 10, 2026
b8ffb86
Abilities API: Clarify readable content exposure
jorgefilipecosta Jul 10, 2026
e9e1759
Abilities API: Sync content query ability with plugin
jorgefilipecosta Oct 5, 2026
ad59dc7
Abilities API: Use the public meta flag for the content query ability
jorgefilipecosta Oct 5, 2026
3effe21
Abilities API: Update the content query ability since tags to 7.2.0
jorgefilipecosta Oct 5, 2026
7088e10
Abilities API: Drop hook name phpcs ignores from the content query ab…
jorgefilipecosta Oct 5, 2026
c430c83
Tests: Add assertion messages to the content query REST tests
jorgefilipecosta Oct 5, 2026
71b745a
Tests: Stop popping the faked init actions in content query tests
jorgefilipecosta Oct 5, 2026
4dc4db7
Tests: Rely on the test case to reset content query post types
jorgefilipecosta Oct 5, 2026
c85428b
Abilities API: Use the multi-line comment format in the content query…
jorgefilipecosta Oct 5, 2026
3e8ce46
Abilities API: Unset no_found_rows in the content query count query
jorgefilipecosta Oct 5, 2026
28e59b9
Tests: Add the Trac ticket to the content query tests
jorgefilipecosta Oct 5, 2026
bcb60b7
Tests: Unregister the content category after each content query test
jorgefilipecosta Oct 5, 2026
753c1df
Abilities API: Drop post_type_cap() from the content query ability
jorgefilipecosta Oct 6, 2026
a89bbb3
Abilities API: Share the post and post type lookups in the content qu…
jorgefilipecosta Oct 6, 2026
04fc6c5
Abilities API: Filter and return the author by slug in the content qu…
jorgefilipecosta Oct 6, 2026
e8ca6ec
Abilities API: Return an empty rendered title when a title filter ret…
jorgefilipecosta Oct 6, 2026
e38910b
Abilities API: Restore the hooks the content REST tests change to reg…
jorgefilipecosta Oct 6, 2026
3523917
Abilities API: Look up an exposed post type directly in the content q…
jorgefilipecosta Oct 6, 2026
155f3b7
Abilities API: Say that editors can tell whether an author slug exists
jorgefilipecosta Oct 6, 2026
4ad40b0
Abilities API: Stop citing the author filter in parse_filter_int()'s …
jorgefilipecosta Oct 6, 2026
9527fb5
Abilities API: Document `show_in_abilities` as a boolean
jorgefilipecosta Oct 7, 2026
976fc3c
Abilities API: Prime the caches that permalinks read in the content q…
jorgefilipecosta Oct 7, 2026
40ab2d4
Abilities API: Update the content query comments on string input
jorgefilipecosta Oct 7, 2026
ffcf519
Abilities API: Align the `@param` tags in the content query ability
jorgefilipecosta Oct 7, 2026
1af29cc
Abilities API: Drop the `open_world` annotation from the content quer…
jorgefilipecosta Oct 7, 2026
0d38947
Tests: Count only the callback's queries in the content query tests o…
jorgefilipecosta Oct 7, 2026
c806083
Abilities API: Restore every loop global after rendering content quer…
jorgefilipecosta Oct 7, 2026
5213886
Abilities API: Describe author slugs without `core/users-query`
jorgefilipecosta Oct 7, 2026
170b041
Abilities API: Hide users of other sites from the author slug filter …
jorgefilipecosta Oct 7, 2026
faa9aad
Abilities API: Stop naming a future `core/manage-content` ability
jorgefilipecosta Oct 7, 2026
a56fc55
Abilities API: Document duplicate slugs in hierarchical post types
jorgefilipecosta Oct 7, 2026
f5a26c1
Abilities API: Use early exits in the content query loop global helpers
jorgefilipecosta Oct 7, 2026
17f89f7
Abilities API: Prime parent caches in the content query ability
jorgefilipecosta Oct 7, 2026
4761ef8
Tests: Cover the editor password bypass for generated content query e…
jorgefilipecosta Oct 7, 2026
3462f74
Tests: Follow Core conventions in the content query tests
jorgefilipecosta Oct 7, 2026
5c17036
Abilities API: Tidy the content query ability class
jorgefilipecosta Oct 7, 2026
b05a8d9
Abilities API: Simplify the content query ability
jorgefilipecosta Oct 7, 2026
f872aa0
Abilities API: Set up each content query post once while formatting it
jorgefilipecosta Oct 7, 2026
f2b7f67
Abilities API: Accept a single ID in the content query include filter
jorgefilipecosta Oct 7, 2026
5262029
Abilities API: Simplify the content query errors and page count
jorgefilipecosta Oct 7, 2026
670144e
Abilities API: Add since notes for the content query ability
jorgefilipecosta Oct 7, 2026
55a5875
Tests: Reset the post types after each content query test
jorgefilipecosta Oct 7, 2026
f002f02
Tests: Tidy the content query tests
jorgefilipecosta Oct 7, 2026
70f92f7
Tests: Use Trac ticket 66268 in the content query tests
jorgefilipecosta Oct 7, 2026
42d5f13
Abilities API: Save the content query loop globals by value
jorgefilipecosta Oct 7, 2026
c8b63bf
Tests: Cover the content query post context and author priming
jorgefilipecosta Oct 7, 2026
7a1fa75
Abilities API: Document `show_in_abilities` for all content abilities
jorgefilipecosta Oct 7, 2026
98d9ccb
Abilities API: Explain the content query string input in one place
jorgefilipecosta Oct 7, 2026
95af06a
Abilities API: Honor whole-number `page` and `per_page` in the conten…
jorgefilipecosta Oct 7, 2026
f68de76
Abilities API: Keep the setup of a global post that was not set up
jorgefilipecosta Oct 7, 2026
028a590
Abilities API: Rename the content class to `WP_Abilities_Content`
jorgefilipecosta Oct 8, 2026
171699b
Abilities API: Address review feedback on the content query
jorgefilipecosta Oct 8, 2026
893a0b9
Abilities API: Align the content query docs with the sibling abilities
jorgefilipecosta Oct 8, 2026
24d4b6c
Abilities API: Address further review feedback on the content query
jorgefilipecosta Oct 9, 2026
ecaa272
Abilities API: Keep the `core/content-query` callbacks private.
jorgefilipecosta Oct 9, 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
16 changes: 15 additions & 1 deletion src/wp-includes/abilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@

declare( strict_types = 1 );

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

/**
* Registers the core ability categories.
*
* @since 6.9.0
* @since 7.2.0 Added the `uncategorized` category.
* @since 7.2.0 Added the `content` and `uncategorized` categories.
*/
function wp_register_core_ability_categories(): void {
wp_register_ability_category(
Expand All @@ -32,6 +34,14 @@ function wp_register_core_ability_categories(): void {
)
);

wp_register_ability_category(
'content',
array(
'label' => __( 'Content' ),
'description' => __( 'Abilities that retrieve or manage posts and other content.' ),
)
);

wp_register_ability_category(
'uncategorized',
array(
Expand All @@ -45,6 +55,7 @@ function wp_register_core_ability_categories(): void {
* Registers the default core abilities.
*
* @since 6.9.0
* @since 7.2.0 Added the `core/content-query` ability.
*
* @global wpdb $wpdb WordPress database abstraction object.
*/
Expand Down Expand Up @@ -360,4 +371,7 @@ function wp_register_core_abilities(): void {
),
)
);

// Register the content abilities (currently the read-only `core/content-query`).
( new WP_Abilities_Content() )->register();
}
Loading
Loading