Make WordPress Core


Ignore:
Timestamp:
10/25/2011 05:29:28 AM (12 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-includes/wp-db.php

    r18998 r19060  
    460460     */
    461461    var $func_call;
     462
     463    /**
     464     * Whether MySQL is used as the database engine.
     465     *
     466     * Set in WPDB::db_connect() to true, by default. This is used when checking
     467     * against the required MySQL version for WordPress. Normally, a replacement
     468     * database drop-in (db.php) will skip these checks, but setting this to true
     469     * will force the checks to occur.
     470     *
     471     * @since 3.3.0
     472     * @access public
     473     * @var bool
     474     */
     475    public $is_mysql = null;
    462476
    463477    /**
     
    10161030     */
    10171031    function db_connect() {
     1032
     1033        $this->is_mysql = true;
     1034
    10181035        if ( WP_DEBUG ) {
    10191036            $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
Note: See TracChangeset for help on using the changeset viewer.