Skip to content

Commit 24f4fdc

Browse files
committed
Collaboration: Remove backward-compatible wp-sync/v1 route alias
The wp-sync/v1 namespace was a transitional alias for the Gutenberg plugin. Remove it so only wp-collaboration/v1 is registered.
1 parent 2e7c177 commit 24f4fdc

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/wp-includes/collaboration/class-wp-http-polling-collaboration-server.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,6 @@ public function register_routes(): void {
195195
'/updates',
196196
$route_args
197197
);
198-
199-
/*
200-
* Backward-compatible alias so that the Gutenberg plugin's
201-
* bundled sync package (which still uses wp-sync/v1) continues
202-
* to work against WordPress 7.0+.
203-
*
204-
* @todo Remove once the Gutenberg plugin has transitioned to
205-
* the wp-collaboration/v1 namespace.
206-
*/
207-
register_rest_route(
208-
'wp-sync/v1',
209-
'/updates',
210-
$route_args
211-
);
212198
}
213199

214200
/**

0 commit comments

Comments
 (0)