From f29ad11f8ebd51fa719585dd3865cd0b6bb503ba Mon Sep 17 00:00:00 2001 From: ellatrix Date: Thu, 26 Feb 2026 10:35:44 +0000 Subject: [PATCH] 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 --- wp-includes/collaboration/class-wp-http-polling-sync-server.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/collaboration/class-wp-http-polling-sync-server.php b/wp-includes/collaboration/class-wp-http-polling-sync-server.php index 7f60a3075a..533b23fdb4 100644 --- a/wp-includes/collaboration/class-wp-http-polling-sync-server.php +++ b/wp-includes/collaboration/class-wp-http-polling-sync-server.php @@ -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, diff --git a/wp-includes/version.php b/wp-includes/version.php index 71ded6655a..25dfea484c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.