configs/wordpress/db.php
/**
	 * Whether or not MySQL database is at least the required minimum version.
	 * The additional argument allows the caller to check a specific database.
	 *
	 * @since 2.5.0
	 * @uses $wp_version
	 *
	 * @return WP_Error
	 */
Whether or not MySQL database is at least the required minimum version.
The additional argument allows the caller to check a specific database.




Whether or not MySQL database is at least the required minimum version . The additional argument allows the caller to check a specific database .
function check_database_version( $dbh_or_table = false ) {
		global $wp_version;
		$mysql_version = preg_replace( '|[^0-9\.]|', '', $this->db_version( $dbh_or_table ) );
		if ( version_compare($mysql_version, '4.1.2', '<') )
			return new WP_Error( 'database_version', sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.1.2 or higher'), $wp_version) );
	}
function check_database_version ( $ dbh_or_table = false ) { global $ wp_version ; $ mysql_version = preg_replace ( '|[^0-9\.]|' , '' , $ this -> db_version ( $ dbh_or_table ) ) ; if ( version_compare ( $ mysql_version , '4.1.2' , '<' ) ) return new WP_Error ( 'database_version' , sprintf ( __ ( '<strong>ERROR</strong>: WordPress %s requires MySQL 4.1.2 or higher' ) , $ wp_version ) ) ; }
Whether or not MySQL database is at least the required minimum version.
Whether or not MySQL database is at least the required minimum version .
// Make sure the server has MySQL 4.1.2