Make WordPress Core


Ignore:
Timestamp:
10/25/2011 05:29:28 AM (13 years ago)
Author:
nacin
Message:

Introduce ->mysql to allow drop-ins to declare themselves as MySQL and therefore allow minimum version checks to still apply. fixes #18176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update-core.php

    r18938 r19060  
    338338    $wp_version = '3.3';
    339339    $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
    340     $mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
     340    if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $this->is_mysql ) )
     341        $mysql_compat = true;
     342    else
     343        $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' );
    341344
    342345    if ( !$mysql_compat || !$php_compat )
Note: See TracChangeset for help on using the changeset viewer.