Make WordPress Core


Ignore:
Timestamp:
08/26/2008 07:18:58 PM (17 years ago)
Author:
ryan
Message:

Use a subquery in categorynot_in query if the DB version supports it. Props pedrop. fixes #7599

File:
1 edited

Legend:

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

    r8600 r8738  
    925925
    926926    /**
     927     * Whether of not the database version supports sub-queries.
     928     *
     929     * @since 2.7
     930     *
     931     * @return bool True if sub-queries are supported, false if version does not
     932     */
     933    function supports_subqueries() {
     934        return ( version_compare(mysql_get_server_info($this->dbh), '4.1.0', '>=') );
     935    }
     936
     937    /**
    927938     * Retrieve the name of the function that called wpdb.
    928939     *
Note: See TracChangeset for help on using the changeset viewer.