Changeset 64346
- Timestamp:
- 10/14/2026 06:47:16 PM (2 days ago)
- Location:
- trunk
- Files:
-
- 3 added
- 2 edited
-
src/wp-includes/abilities.php (modified) (3 diffs)
-
src/wp-includes/abilities/class-wp-abilities-settings.php (modified) (1 diff)
-
src/wp-includes/abilities/class-wp-abilities-users.php (added)
-
tests/phpunit/tests/abilities-api/wpRegisterCoreUsersAbility.php (added)
-
tests/phpunit/tests/rest-api/wpRestAbilitiesUsersController.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/abilities.php
r64311 r64346 11 11 12 12 require_once __DIR__ . '/abilities/class-wp-abilities-settings.php'; 13 require_once __DIR__ . '/abilities/class-wp-abilities-users.php'; 13 14 14 15 /** … … 48 49 * 49 50 * @since 6.9.0 50 * @since 7.2.0 Added the `core/settings-get` a bility.51 * @since 7.2.0 Added the `core/settings-get` and `core/users-query` abilities. 51 52 * 52 53 * @global wpdb $wpdb WordPress database abstraction object. … … 367 368 // Register the settings abilities (currently the read-only `core/settings-get`). 368 369 ( new WP_Abilities_Settings() )->register(); 370 371 // Register the user abilities (currently the read-only `core/users-query`). 372 ( new WP_Abilities_Users() )->register(); 369 373 } -
trunk/src/wp-includes/abilities/class-wp-abilities-settings.php
r64311 r64346 17 17 * future write-oriented `core/settings-update` ability. 18 18 * 19 * Unlike the other core abilities, which are self-contained closures registered directly20 * in wp_register_core_abilities(), the settings abilities live in a dedicated class19 * Unlike the core abilities registered directly in wp_register_core_abilities() as 20 * self-contained closures, the settings abilities live in a dedicated class 21 21 * because they share state: the set of exposed settings is computed once at registration 22 22 * and reused by the input schema, the output schema, and the execute callback, and the
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)