Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
225beea
REST API endpoints for sites
lloc Aug 14, 2026
088f7b7
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Aug 19, 2026
5c7205d
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Aug 20, 2026
cc81250
REST API: Add sites endpoints
lloc Aug 22, 2026
b447451
REST API: Drop is_super_admin() from sites checks
lloc Aug 25, 2026
b3ff7ed
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Aug 27, 2026
375b136
Tests: Add unit tests for WP_REST_Site_Meta_Fields functionality
spacedmonkey Aug 28, 2026
b7a51db
Tests: Rename rest-sites-controller.php to wpRestSitesController.php …
spacedmonkey Aug 28, 2026
0197d37
Merge pull request #1 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Sep 2, 2026
829c066
Merge pull request #2 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Sep 2, 2026
1a4ddf8
Enhance site deletion process to support force deletion and user removal
spacedmonkey Sep 4, 2026
13c56ee
Tests: Add validation for existing domain and path when creating or u…
spacedmonkey Sep 4, 2026
8fe0b65
Remove redundant cache update call in site creation process
spacedmonkey Sep 4, 2026
e0801aa
REST API: Validate domain and path on the Sites Controller
spacedmonkey Sep 4, 2026
9ca95a1
Merge remote-tracking branch 'fork-1/feature/40365-rest-sites-endpoin…
spacedmonkey Sep 4, 2026
cee5f71
Merge pull request #3 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Sep 11, 2026
a8889ee
Merge pull request #4 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Sep 11, 2026
396291c
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Sep 14, 2026
586589d
Apply suggestion from @spacedmonkey
spacedmonkey Sep 18, 2026
06c7410
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
spacedmonkey Sep 18, 2026
a6430fb
Apply suggestion from @spacedmonkey
spacedmonkey Sep 18, 2026
b178b2f
Update src/wp-includes/rest-api/endpoints/class-wp-rest-sites-control…
lloc Sep 28, 2026
8b519ff
Update src/wp-includes/rest-api/endpoints/class-wp-rest-sites-control…
lloc Sep 28, 2026
797e119
Update src/wp-includes/rest-api/endpoints/class-wp-rest-sites-control…
lloc Sep 28, 2026
4aa1947
Multisite: Require delete_sites capability to delete a site via REST,…
spacedmonkey Sep 28, 2026
1a1c422
Tests: Fix WordPress coding standards violations in wpRestSitesContro…
spacedmonkey Sep 28, 2026
8f76f4f
Tests: Regenerate wp-api-generated.js fixture to include network arg …
spacedmonkey Sep 28, 2026
4ef1358
REST API: Rename check_domain_is_available() to check_url_is_availabl…
spacedmonkey Sep 28, 2026
94b6c0e
Tests: Add unit tests for check_url_is_available().
spacedmonkey Sep 28, 2026
0edb70e
Multisite: Fix follow-up permission-check inconsistencies in the site…
spacedmonkey Sep 28, 2026
3734302
Multisite: Close a related anonymous-access gap in the sites `user` f…
spacedmonkey Sep 29, 2026
13b9603
Define allow_batch support for site endpoints
spacedmonkey Sep 29, 2026
6f0330c
Add per-network super-admin scoping to REST sites controller (WIP)
spacedmonkey Sep 30, 2026
21377c7
Merge pull request #8 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Sep 30, 2026
b474a90
Merge pull request #7 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Sep 30, 2026
7c9f2e3
Merge pull request #6 from spacedmonkey/fix/40365-check-url-is-available
lloc Sep 30, 2026
30869d5
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Sep 30, 2026
573f99b
Merge branch 'feature/40365-rest-sites-endpoint' into fix/40365-rest-…
lloc Sep 30, 2026
bb56c85
Coding Standards: Use Yoda condition in get_super_admins().
lloc Sep 30, 2026
b94c719
Coding Standards: Equals sign not aligned with surrounding assignments.
lloc Sep 30, 2026
32df851
Update tests/qunit/fixtures/wp-api-generated.js
spacedmonkey Sep 30, 2026
e4597ba
REST API: Merge network-ID permission checks into a single method.
spacedmonkey Sep 30, 2026
9288cc1
Merge pull request #9 from spacedmonkey/feature/40365-rest-sites-endp…
lloc Oct 1, 2026
959bf3d
Fix tests
spacedmonkey Oct 1, 2026
6cb9041
Apply suggestion from @spacedmonkey
spacedmonkey Oct 1, 2026
5973182
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
spacedmonkey Oct 1, 2026
7ecdb29
Enhance REST API: Default site retrieval to current network if no net…
spacedmonkey Oct 2, 2026
472701e
Merge pull request #10 from spacedmonkey/feature/40365-rest-sites-end…
lloc Oct 2, 2026
944e506
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Oct 2, 2026
addddc3
REST API: Limit the sites endpoint to the current network.
spacedmonkey Oct 5, 2026
9b4c6db
REST API: Use operation-specific error codes for cross-network site c…
spacedmonkey Oct 5, 2026
94133a0
Users: Revert the network ID parameter for super admin checks.
spacedmonkey Oct 5, 2026
3abc57f
Merge pull request #11 from spacedmonkey/feature/40365-rest-sites-end…
lloc Oct 5, 2026
686856f
Fixed the existence leak
lloc Oct 7, 2026
be4cf14
REST API: Limit the sites endpoint to the main site and tighten the r…
spacedmonkey Oct 7, 2026
423bf96
REST API: Use a single validated user parameter for sites.
spacedmonkey Oct 7, 2026
e43b75b
REST API: Require the capability to manage sites for the edit context.
spacedmonkey Oct 7, 2026
06c9142
Merge pull request #12 from spacedmonkey/feature/40365-rest-sites-end…
lloc Oct 8, 2026
8045216
Merge branch 'trunk' into feature/40365-rest-sites-endpoint
lloc Oct 10, 2026
75309a6
Fix Domain and Path maxlengths
lloc Oct 10, 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
4 changes: 4 additions & 0 deletions src/wp-includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ function create_initial_rest_routes() {
$controller = new WP_REST_Comments_Controller();
$controller->register_routes();

// Sites.
$controller = new WP_REST_Sites_Controller();
$controller->register_routes();

$search_handlers = array(
new WP_REST_Post_Search_Handler(),
new WP_REST_Term_Search_Handler(),
Expand Down
Loading
Loading