Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.


Runs the SQL version checks.


These values are used in later tests, but the part of preparing them is more easily managed early in the class for ease of access and discovery.

Top ↑


File: wp-admin/includes/class-wp-site-health.php. View all references

private function prepare_sql_data() {
	global $wpdb;

	$mysql_server_type = $wpdb->db_server_info();

	$this->mysql_server_version = $wpdb->get_var( 'SELECT VERSION()' );

	if ( stristr( $mysql_server_type, 'mariadb' ) ) {
		$this->is_mariadb                = true;
		$this->mysql_recommended_version = $this->mariadb_recommended_version;

	$this->is_acceptable_mysql_version  = version_compare( $this->mysql_required_version, $this->mysql_server_version, '<=' );
	$this->is_recommended_mysql_version = version_compare( $this->mysql_recommended_version, $this->mysql_server_version, '<=' );

Top ↑


Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.