Make WordPress Core


Ignore:
Timestamp:
04/05/2019 11:08:30 AM (5 years ago)
Author:
swissspidy
Message:

Site Health: Remove unused $wp_config_path variable.

Discovered and fixed during WordCamp London 2019 contributor day.

Props m_uysl.
Fixes #46808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r45111 r45113  
    3939        }
    4040
    41         $upload_dir = wp_get_upload_dir();
    42 
    43         if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
    44             $wp_config_path = ABSPATH . 'wp-config.php';
    45             // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
    46         } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
    47             $wp_config_path = dirname( ABSPATH ) . '/wp-config.php';
    48         }
    49 
     41        $upload_dir           = wp_get_upload_dir();
    5042        $core_current_version = get_bloginfo( 'version' );
    5143        $core_updates         = get_core_updates();
Note: See TracChangeset for help on using the changeset viewer.