diff --git a/wp-includes/load.php b/wp-includes/load.php index fb5f98d261..fcd5cf256d 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -162,10 +162,12 @@ function wp_check_php_mysql_versions() { exit( 1 ); } - if ( ! function_exists( 'mysqli_connect' ) && ! function_exists( 'mysql_connect' ) - // This runs before default constants are defined, so we can't assume WP_CONTENT_DIR is set yet. - && ( defined( 'WP_CONTENT_DIR' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) - || ! file_exists( ABSPATH . 'wp-content/db.php' ) ) + // This runs before default constants are defined, so we can't assume WP_CONTENT_DIR is set yet. + $wp_content_dir = defined( 'WP_CONTENT_DIR' ) ? WP_CONTENT_DIR : ABSPATH . 'wp-content'; + + if ( ! function_exists( 'mysqli_connect' ) + && ! function_exists( 'mysql_connect' ) + && ! file_exists( $wp_content_dir . '/db.php' ) ) { require_once ABSPATH . WPINC . '/functions.php'; wp_load_translations_early(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6e66a2815c..b4460f8b21 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56151'; +$wp_version = '6.3-beta3-56152'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.