Make WordPress Core

Changeset 12480


Ignore:
Timestamp:
12/22/2009 11:49:22 AM (15 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r12410 r12480  
    10451045     * @since 2.5.0
    10461046     * @uses $wp_version
     1047     * @uses $required_mysql_version
    10471048     *
    10481049     * @return WP_Error
     
    10501051    function check_database_version()
    10511052    {
    1052         global $wp_version;
    1053         // Make sure the server has MySQL 4.1.2
    1054         if ( version_compare($this->db_version(), '4.1.2', '<') )
    1055             return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.1.2 or higher'), $wp_version));
     1053        global $wp_version, $required_mysql_version;
     1054        // Make sure the server has the required MySQL version
     1055        if ( version_compare($this->db_version(), $required_mysql_version, '<') )
     1056            return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress %1$s requires MySQL %2$s or higher'), $wp_version, $required_mysql_version));
    10561057    }
    10571058
Note: See TracChangeset for help on using the changeset viewer.