Wrong database version warning. | WordPress.org

[ad_1]

While this is not an impediment in any way, I have discovered that my server is reporting database version in this way: “5.5.5-10.6.7-MariaDB-2ubuntu1.1-log”. Causing a notification to show up backend.

Here: https://www.php.net/manual/en/mysqli.get-server-info.php accoring to user contribution Windows environments may report an extra 5.5.5 in version. My server is using Linux and apparently this was fixed in PHP release 8.0.16 (17 Feb 2022).

Looking at how wordpress reads the version I have found this code $wpdb->get_var( 'SELECT VERSION()' ); in class-wp-site-health.php file. They are taking into account if server is MariaDB and compare the version against 10.0. This seams to be a better way of doing it.

A rewrite of the function cluevo_get_mysql_server_version() would be necesary to remove the wrong version warning I have and have better version compatibility going forward.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer