Site Health: Remove unused $wp_config_path variable.

Discovered and fixed during WordCamp London 2019 contributor day.

Props m_uysl.
Fixes #46808.


git-svn-id: https://develop.svn.wordpress.org/trunk@45113 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2019-04-05 11:08:30 +00:00
parent 45771f9f11
commit 99a0145ba1

View File

@ -38,15 +38,7 @@ class WP_Debug_Data {
$switched_locale = switch_to_locale( $locale ); $switched_locale = switch_to_locale( $locale );
} }
$upload_dir = wp_get_upload_dir(); $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';
}
$core_current_version = get_bloginfo( 'version' ); $core_current_version = get_bloginfo( 'version' );
$core_updates = get_core_updates(); $core_updates = get_core_updates();
$core_update_needed = ''; $core_update_needed = '';