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/upgrade.php

    r18460 r19060  
    3939$mysql_version  = $wpdb->db_version();
    4040$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
    41 $mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
     41if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
     42    $mysql_compat = true;
     43else
     44    $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' );
    4245
    4346@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
Note: See TracChangeset for help on using the changeset viewer.