WordPress.org

Make WordPress Core

Ticket #11437: 11437-extra.diff

File 11437-extra.diff, 764 bytes (added by Denis-de-Bernardy, 8 years ago)
  • wp-includes/wp-db.php

     
    10521052        function check_database_version()
    10531053        {
    10541054                global $wp_version;
    1055                 // Make sure the server has MySQL 4.0
    1056                 if ( version_compare($this->db_version(), '4.0.0', '<') )
    1057                         return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.0.0 or higher'), $wp_version));
     1055                // Make sure the server has MySQL 4.1
     1056                if ( version_compare($this->db_version(), '4.1.0', '<') )
     1057                        return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.1.0 or higher'), $wp_version));
    10581058        }
    10591059
    10601060        /**