mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-20 01:26:36 +00:00
sites.php only created missing child sites and left an existing one
alone, so a network whose sites still sat on the legacy slug domain
<domain>.<network domain> (wp site create --slug), or carried a stale
home or siteurl, never converged.
- A site on the exact legacy slug domain and network path moves onto
its own domain and path. The run halts when a site already serves
that domain or when the legacy domain is itself a listed site.
- home and siteurl of every listed site are set to its URL, read raw
with the option_home/option_siteurl filters removed, and the run halts
when WordPress refuses the write.
- Every create, move or URL write prints CHANGED <url>, which the task
reports as changed; a second run prints nothing.
The legacy-slug move follows the same idea as dda51499a4 on the IAM
line, on main's WP_MS_SITE_URLS interface and with conflict checks.
SitesTest covers the move, the www network domain, the raw read, the
idempotent second run, unrelated sites and both halts; the harness
records moves under moved_sites because the script's own $moved shares
its global scope.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>