Use new $required_mysql_version global in wp-db.php when checking if the mysql version is new enough. Fixes #11478 props nacin.

git-svn-id: https://develop.svn.wordpress.org/trunk@12480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-12-22 11:49:22 +00:00
parent 4e0adefa76
commit f1241d5e6c
1 changed files with 5 additions and 4 deletions

View File

@ -1044,15 +1044,16 @@ class wpdb {
* *
* @since 2.5.0 * @since 2.5.0
* @uses $wp_version * @uses $wp_version
* @uses $required_mysql_version
* *
* @return WP_Error * @return WP_Error
*/ */
function check_database_version() function check_database_version()
{ {
global $wp_version; global $wp_version, $required_mysql_version;
// Make sure the server has MySQL 4.1.2 // Make sure the server has the required MySQL version
if ( version_compare($this->db_version(), '4.1.2', '<') ) if ( version_compare($this->db_version(), $required_mysql_version, '<') )
return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.1.2 or higher'), $wp_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));
} }
/** /**