From 022bd3f8511217843ff16730db3d56b74434843b Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 2 Feb 2016 00:58:32 +0000 Subject: [PATCH] Database: Allow loading when only the `mysqlnd` extension is loaded. We do an early check for a mysql extension being loaded, but it fails if the `mysqlnd` extension is the only one present. Props nexurium. Fixes #33261. git-svn-id: https://develop.svn.wordpress.org/trunk@36434 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index b1df7fc00c..ec59459f80 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -133,7 +133,7 @@ function wp_check_php_mysql_versions() { die( sprintf( __( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ) ); } - if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) { + if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) { wp_load_translations_early(); $protocol = wp_get_server_protocol();