Skip to content

Commit d95f2e9

Browse files
Abilities API: Stop describing every other core ability as a closure.
The `WP_Abilities_Content` and `WP_Abilities_Settings` docblocks said the other core abilities are self-contained closures registered directly in `wp_register_core_abilities()`. With both classes in Core, that is no longer true for either, so both now contrast the class with the core abilities that are registered there as closures.
1 parent 85f803c commit d95f2e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/wp-includes/abilities/class-wp-abilities-content.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* by post type, status, author, parent, or included IDs. Raw fields are only returned for
1919
* posts the current user can edit.
2020
*
21-
* Unlike the other core abilities, which are self-contained closures registered directly
22-
* in wp_register_core_abilities(), the content ability lives in a dedicated class because
21+
* Unlike the core abilities registered directly in wp_register_core_abilities() as
22+
* self-contained closures, the content ability lives in a dedicated class because
2323
* its callbacks and schemas share helpers: the permission and execute callbacks resolve and
2424
* authorize the requested post through the same code, and the input schema, output schema,
2525
* and field projection are built from the same field definitions. Future write-oriented

0 commit comments

Comments
 (0)