wpdb::check_database_version(): void|WP_Error

In this article

Determines whether MySQL database is at least the required minimum version.

Return

void|WP_Error

Source

 *
 * @global string $required_mysql_version The required MySQL version string.
 * @return void|WP_Error
 */
public function check_database_version() {
	global $required_mysql_version;
	$wp_version = wp_get_wp_version();

	// Make sure the server has the required MySQL version.
	if ( version_compare( $this->db_version(), $required_mysql_version, '<' ) ) {

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

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