Real-time collaboration: Remove ghost awareness state explicitly when refreshing.

Syncs PHP changes from https://github.com/WordPress/gutenberg/pull/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: https://github.com/WordPress/wordpress-develop/pull/11049.

Fixes #64622.
Props alecgeatches.
Built from https://develop.svn.wordpress.org/trunk@61746


git-svn-id: http://core.svn.wordpress.org/trunk@61052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ellatrix
2026-02-26 10:35:44 +00:00
parent 2bc0044077
commit f29ad11f8e
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ class WP_HTTP_Polling_Sync_Server {
),
'awareness' => array(
'required' => true,
'type' => 'object',
'type' => array( 'object', 'null' ),
),
'client_id' => array(
'minimum' => 1,

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-beta1-61745';
$wp_version = '7.0-beta1-61746';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.