From 1712bf5fd3135c2e366780db492bf62f7507ca9e Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Mon, 25 May 2026 13:01:42 +0530 Subject: [PATCH 1/2] Upgrade/Install: Remove accidentally shipped RTC files on upgrade. Add real-time collaboration files to the `$_old_files` array so they are removed when upgrading to 7.0.1. These files were removed in [62334] but unintentionally shipped in the WordPress 7.0 package due to a build server issue. The `verify:old-files` build check will also prevent them from being included in future builds. Props johnbillion, peterwilsoncc. Fixes #65325. --- src/wp-admin/includes/update-core.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index cfa1dfaddf610..5243018346bf8 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -897,6 +897,12 @@ 'wp-includes/js/dist/script-modules/interactivity/debug.js', 'wp-includes/js/dist/script-modules/interactivity/debug.min.js', 'wp-includes/js/dist/vendor/react-jsx-runtime.min.js.LICENSE.txt', + // 7.0.1 + 'wp-includes/collaboration.php', + 'wp-includes/collaboration/', + 'wp-includes/collaboration/class-wp-http-polling-sync-server.php', + 'wp-includes/collaboration/class-wp-sync-post-meta-storage.php', + 'wp-includes/collaboration/interface-wp-sync-storage.php', ); /** From d8d0bd735f628d33e732643eb8d4834e0cd911fe Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Sun, 28 Jun 2026 15:41:20 +0530 Subject: [PATCH 2/2] Upgrade/Install: Also remove stale sync.js files shipped with 7.0. Following [62334], the build server shipped wp-includes/js/dist/sync.js and sync.min.js in the 7.0 package alongside the collaboration files. Add them to $_old_files so they are removed on upgrade. See #65325. --- src/wp-admin/includes/update-core.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 5243018346bf8..30c79f208c799 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -903,6 +903,8 @@ 'wp-includes/collaboration/class-wp-http-polling-sync-server.php', 'wp-includes/collaboration/class-wp-sync-post-meta-storage.php', 'wp-includes/collaboration/interface-wp-sync-storage.php', + 'wp-includes/js/dist/sync.js', + 'wp-includes/js/dist/sync.min.js', ); /**