Changeset 61045
- Timestamp:
- 10/22/2025 07:05:24 AM (8 weeks ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
src/wp-includes/rest-api.php (modified) (1 diff)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.php (added)
-
src/wp-settings.php (modified) (1 diff)
-
tests/phpunit/tests/rest-api/rest-schema-setup.php (modified) (1 diff)
-
tests/phpunit/tests/rest-api/wpRestAbilitiesV1CategoriesController.php (added)
-
tests/qunit/fixtures/wp-api-generated.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r61036 r61045 486 486 487 487 // Abilities. 488 $abilities_categories_controller = new WP_REST_Abilities_V1_Categories_Controller(); 489 $abilities_categories_controller->register_routes(); 488 490 $abilities_run_controller = new WP_REST_Abilities_V1_Run_Controller(); 489 491 $abilities_run_controller->register_routes(); -
trunk/src/wp-settings.php
r61032 r61045 337 337 require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-font-faces-controller.php'; 338 338 require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-font-collections-controller.php'; 339 require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.php'; 339 340 require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-abilities-v1-list-controller.php'; 340 341 require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-abilities-v1-run-controller.php'; -
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r61032 r61045 205 205 '/wp/v2/font-families/(?P<id>[\d]+)', 206 206 '/wp-abilities/v1', 207 '/wp-abilities/v1/categories', 208 '/wp-abilities/v1/categories/(?P<slug>[a-z0-9]+(?:-[a-z0-9]+)*)', 207 209 '/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\-\/]+?)/run', 208 210 '/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\-\/]+)', -
trunk/tests/qunit/fixtures/wp-api-generated.js
r61032 r61045 13514 13514 } 13515 13515 }, 13516 "/wp-abilities/v1/categories": { 13517 "namespace": "wp-abilities/v1", 13518 "methods": [ 13519 "GET" 13520 ], 13521 "endpoints": [ 13522 { 13523 "methods": [ 13524 "GET" 13525 ], 13526 "args": { 13527 "context": { 13528 "description": "Scope under which the request is made; determines fields present in response.", 13529 "type": "string", 13530 "enum": [ 13531 "view", 13532 "embed", 13533 "edit" 13534 ], 13535 "default": "view", 13536 "required": false 13537 }, 13538 "page": { 13539 "description": "Current page of the collection.", 13540 "type": "integer", 13541 "default": 1, 13542 "minimum": 1, 13543 "required": false 13544 }, 13545 "per_page": { 13546 "description": "Maximum number of items to be returned in result set.", 13547 "type": "integer", 13548 "default": 50, 13549 "minimum": 1, 13550 "maximum": 100, 13551 "required": false 13552 } 13553 } 13554 } 13555 ], 13556 "_links": { 13557 "self": [ 13558 { 13559 "href": "http://example.org/index.php?rest_route=/wp-abilities/v1/categories" 13560 } 13561 ] 13562 } 13563 }, 13564 "/wp-abilities/v1/categories/(?P<slug>[a-z0-9]+(?:-[a-z0-9]+)*)": { 13565 "namespace": "wp-abilities/v1", 13566 "methods": [ 13567 "GET" 13568 ], 13569 "endpoints": [ 13570 { 13571 "methods": [ 13572 "GET" 13573 ], 13574 "args": { 13575 "slug": { 13576 "description": "Unique identifier for the ability category.", 13577 "type": "string", 13578 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", 13579 "required": false 13580 } 13581 } 13582 } 13583 ] 13584 }, 13516 13585 "/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\\-\\/]+?)/run": { 13517 13586 "namespace": "wp-abilities/v1",
Note: See TracChangeset
for help on using the changeset viewer.