wp-includes/wp-db.php
/**
	 * Whether MySQL database is at least the required minimum version.
	 *
	 * @since 2.5.0
	 *
	 * @global string $wp_version
	 * @global string $required_mysql_version
	 *
	 * @return WP_Error|void
	 */
Whether MySQL database is at least the required minimum version.




Whether MySQL database is at least the required minimum version .
public function check_database_version() {
		global $wp_version, $required_mysql_version;
		if ( version_compare($this->db_version(), $required_mysql_version, '<') ) {
			return new WP_Error('database_version', sprintf( __( '<strong>ERROR</strong>: WordPress %1$s requires MySQL %2$s or higher' ), $wp_version, $required_mysql_version ));
		}
	}
public function check_database_version ( ) { global $ wp_version , $ required_mysql_version ; if ( version_compare ( $ this -> db_version ( ) , $ required_mysql_version , '<' ) ) { return new WP_Error ( 'database_version' , sprintf ( __ ( '<strong>ERROR</strong>: WordPress %1$s requires MySQL %2$s or higher' ) , $ wp_version , $ required_mysql_version ) ) ; } }
Whether MySQL database is at least the required minimum version.
Whether MySQL database is at least the required minimum version .
// Make sure the server has the required MySQL version /* translators: 1: WordPress version number, 2: Minimum required MySQL version number */