From ec05cd3168d83e237d3b9fe0e33c47a96ca7b085 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 5 Apr 2019 11:09:51 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-debug-data.php | 10 +--------- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 5f96ffa41c..850ae9a860 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -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 = ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 76e1c5c158..95e6b9fba4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.