Repository navigation
Commit 189322a
authored
Restore database version support for older WordPress releases (#484)
## 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#42561 parent 8767a36 commit 189322a
2 files changed
Lines changed: 15 additions & 4 deletions
File tree
- packages
- mysql-on-sqlite/tests/fixtures
- plugin-sqlite-database-integration/wp-includes/sqlite
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
748 | 763 | | |
749 | 764 | | |
750 | 765 | | |
| |||
0 commit comments