Bootstrap/Load: Revert [49161] from the 5.5 branch.

See #50913.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-10-15 21:17:08 +00:00
parent 2d12c86d82
commit 8a8346a4ca

View File

@ -112,11 +112,7 @@ function wp_check_php_mysql_versions() {
exit( 1 );
}
if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' )
// 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' ) ) )
) {
if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
require_once ABSPATH . WPINC . '/functions.php';
wp_load_translations_early();
$args = array(