Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions src/wp-includes/abilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

declare( strict_types = 1 );

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

/**
* Registers the core ability categories.
*
Expand All @@ -32,6 +34,14 @@ function wp_register_core_ability_categories(): void {
'description' => __( 'Abilities that retrieve or modify user information and settings.' ),
)
);

wp_register_ability_category(
'post',
array(
'label' => __( 'Post' ),
'description' => __( 'Abilities related to the creation and management of posts of all types.' ),
)
);
}

/**
Expand Down Expand Up @@ -259,4 +269,6 @@ function wp_register_core_abilities(): void {
),
)
);

WP_Posts_Abilities::register();
}
Loading
Loading