Skip to content

Commit 91f6c42

Browse files
committed
Real-time collaboration: Remove ghost awareness state explicitly when refreshing.
Syncs PHP changes from WordPress/gutenberg#75883. Changes the real-time collaboration polling server endpoint to accept null for awareness values, which is used to explicitly disconnect users leaving the page and remove their awareness data more quickly. CI run: #11049. Fixes #64622. Props alecgeatches. git-svn-id: https://develop.svn.wordpress.org/trunk@61746 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ad87612 commit 91f6c42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function register_routes(): void {
122122
),
123123
'awareness' => array(
124124
'required' => true,
125-
'type' => 'object',
125+
'type' => array( 'object', 'null' ),
126126
),
127127
'client_id' => array(
128128
'minimum' => 1,

0 commit comments

Comments
 (0)