Site Health: Remove unused `$wp_config_path` variable.
Discovered and fixed during WordCamp London 2019 contributor day. Props m_uysl. Fixes #46808. Built from https://develop.svn.wordpress.org/trunk@45113 git-svn-id: http://core.svn.wordpress.org/trunk@44922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
23fe2800cc
commit
ec05cd3168
|
@ -38,15 +38,7 @@ class WP_Debug_Data {
|
|||
$switched_locale = switch_to_locale( $locale );
|
||||
}
|
||||
|
||||
$upload_dir = wp_get_upload_dir();
|
||||
|
||||
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
|
||||
$wp_config_path = ABSPATH . 'wp-config.php';
|
||||
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
|
||||
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
|
||||
$wp_config_path = dirname( ABSPATH ) . '/wp-config.php';
|
||||
}
|
||||
|
||||
$upload_dir = wp_get_upload_dir();
|
||||
$core_current_version = get_bloginfo( 'version' );
|
||||
$core_updates = get_core_updates();
|
||||
$core_update_needed = '';
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-beta1-45112';
|
||||
$wp_version = '5.2-beta1-45113';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue