Changeset 45113
- Timestamp:
- 04/05/2019 11:08:30 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r45111 r45113 39 39 } 40 40 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(); 50 42 $core_current_version = get_bloginfo( 'version' ); 51 43 $core_updates = get_core_updates();
Note: See TracChangeset
for help on using the changeset viewer.