Skip to content

Sync with upstream trunk (1 commit) - #8

Open
batonac wants to merge 2 commits into
d1-supportfrom
upstream-sync
Open

Sync with upstream trunk (1 commit)#8
batonac wants to merge 2 commits into
d1-supportfrom
upstream-sync

Conversation

@batonac

@batonac batonac commented Aug 18, 2026

Copy link
Copy Markdown
Member

Automated sync of WordPress/sqlite-database-integration@trunk into d1-support.

This pull request tracks every upstream commit that has not landed on d1-support yet.
It is updated in place as upstream moves, and merges itself once the merge is clean and
every check is green. While it is open, it needs a person.

Upstream commits (1)


Branch shape: merged. Maintained by upstream-sync.yml. Closing this pull request is not permanent — the next scheduled run reopens it. Disable the workflow to stop the sync.

JanJakes and others added 2 commits August 18, 2026 15:47
## Summary

This fixes fresh multisite installation when the SQLite database is
still empty.

The change:

- Treats a missing blogs table as an empty list of existing sites during
information schema reconstruction.
- Continues to surface unrelated SQLite errors.
- Covers empty, partially initialized, existing, and invalid multisite
databases.

Closes WordPress#490.

## Why

When `MULTISITE` was defined before installation, database startup
queried `wp_blogs` before WordPress had created it. The connection
failed, so WordPress never had the opportunity to install the network
tables.

**Validation:** The reported workflow was reproduced end to end with a
fresh SQLite database and WordPress 7.0.1. `wp core multisite-install`
completed successfully, and the resulting network and main site were
verified.
@batonac batonac added the upstream-sync Automated sync with the WordPress upstream label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream-sync Automated sync with the WordPress upstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants