Changeset 28022
- Timestamp:
- 04/07/2014 10:26:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r28016 r28022 580 580 581 581 /* Use ext/mysqli if it exists and: 582 * - USE_EXT_MYSQL is defined as false, or582 * - WP_USE_EXT_MYSQL is defined as false, or 583 583 * - We are a development version of WordPress, or 584 584 * - We are running PHP 5.5 or greater, or … … 586 586 */ 587 587 if ( function_exists( 'mysqli_connect' ) ) { 588 if ( defined( ' USE_EXT_MYSQL' ) ) {589 $this->use_mysqli = ! USE_EXT_MYSQL;588 if ( defined( 'WP_USE_EXT_MYSQL' ) ) { 589 $this->use_mysqli = ! WP_USE_EXT_MYSQL; 590 590 } elseif ( version_compare( phpversion(), '5.5', '>=' ) || ! function_exists( 'mysql_connect' ) ) { 591 591 $this->use_mysqli = true; … … 1350 1350 /* It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if: 1351 1351 * - We haven't previously connected, and 1352 * - USE_EXT_MYSQL isn't set to false, and1352 * - WP_USE_EXT_MYSQL isn't set to false, and 1353 1353 * - ext/mysql is loaded. 1354 1354 */ … … 1357 1357 if ( $this->has_connected ) { 1358 1358 $attempt_fallback = false; 1359 } else if ( defined( ' USE_EXT_MYSQL' ) && !USE_EXT_MYSQL ) {1359 } else if ( defined( 'WP_USE_EXT_MYSQL' ) && ! WP_USE_EXT_MYSQL ) { 1360 1360 $attempt_fallback = false; 1361 1361 } else if ( ! function_exists( 'mysql_connect' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.