Skip to content

Upgrade/Install: Restore the sync package files in the $_old_files array. - #13061

Draft
t-hamano wants to merge 1 commit into
WordPress:7.1from
t-hamano:65813-old-files-sync
Draft

Upgrade/Install: Restore the sync package files in the $_old_files array.#13061
t-hamano wants to merge 1 commit into
WordPress:7.1from
t-hamano:65813-old-files-sync

Conversation

@t-hamano

@t-hamano t-hamano commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

wp-includes/js/dist/sync.js and sync.min.js were removed in 7.0.2, but came back in 7.1. This was not intentional.

The two paths are currently commented out in $_old_files with a "Restored in WordPress 7.1." note. This PR restores them as active entries so that upgrading to 7.1 deletes the leftover files.

Order of operations

These steps must be done in this order. Otherwise $_old_files will not match what is actually shipped.

  1. Merge Real-time collaboration: Bundle @wordpress/sync instead of exposing as wp.sync gutenberg#81683. The sync package is then no longer exposed as a separate script on Gutenberg's wp/7.1 branch.
  2. On the 7.1 branch of wordpress-develop, update the pinned Gutenberg hash to the latest commit of the wp/7.1 branch. sync.js and sync.min.js then disappear from core, and wp.sync is no longer exposed.
  3. Finally, commit this PR.

Trac ticket: https://core.trac.wordpress.org/ticket/65813

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Investigating when and why the files were reintroduced, and drafting this description. The change itself is a two-line edit that I reviewed and take responsibility for.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

…array.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant