Skip to content

Conversation

@JanJakes
Copy link
Member

@JanJakes JanJakes commented Oct 31, 2025

Emulate the VERSION() function in the SQLite driver

This replaces the old implementation from the legacy SQLite translator that's defined in WP_SQLite_PDO_User_Defined_Functions and returns 5.5.

Emulating it directly in the driver should also be faster than calling a PHP function from SQLite.

This function is used in WordPress core and causes outdated database warning on the Site Health screen.

This replaces the old implementation from the legacy SQLite translator that's
defined in "WP_SQLite_PDO_User_Defined_Functions" and returns "5.5".
@JanJakes JanJakes requested a review from adamziel October 31, 2025 13:38
@JanJakes JanJakes merged commit b142e59 into develop Oct 31, 2025
14 checks passed
@JanJakes JanJakes deleted the version-function branch October 31, 2025 14:21
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.

3 participants