Skip to content

Restore database version support for older WordPress releases - #484

Merged
JanJakes merged 1 commit into
trunkfrom
db-version-fix
Aug 11, 2026
Merged

Restore database version support for older WordPress releases#484
JanJakes merged 1 commit into
trunkfrom
db-version-fix

Conversation

@JanJakes

Copy link
Copy Markdown
Member

Summary

Restore WP_SQLite_DB::db_version() and remove the redundant implementation from the unit-test wpdb stub.

Why

WordPress 5.4 and older do not provide wpdb::db_server_info(). Their inherited db_version() asks the MySQL extension for server information directly, which does not work with the SQLite-backed connection used by Playground. Defining the method on the drop-in makes these releases read the emulated MySQL version through the driver API.

Fixes WordPress/wordpress-playground#4256

WordPress 5.0 through 5.4 reads server information directly through the MySQL extension. Keep the drop-in override so these releases work with the emulated server.
@JanJakes
JanJakes requested a review from ashfame August 11, 2026 14:42
@JanJakes
JanJakes marked this pull request as ready for review August 11, 2026 14:42
@JanJakes
JanJakes merged commit 189322a into trunk Aug 11, 2026
24 checks passed
@JanJakes
JanJakes deleted the db-version-fix branch August 11, 2026 15:36
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.

SQLite refresh breaks WordPress 5.0–5.4 legacy boot tests

2 participants