Changeset 45108
- Timestamp:
- 04/03/2019 11:19:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r45106 r45108 41 41 } 42 42 43 $upload_dir = wp_upload_dir(); 43 $upload_dir = wp_get_upload_dir(); 44 44 45 if ( file_exists( ABSPATH . 'wp-config.php' ) ) { 45 46 $wp_config_path = ABSPATH . 'wp-config.php'; … … 314 315 $size_db = WP_Debug_Data::get_database_size(); 315 316 316 // Go through the various installation directories and calculate their sizes.317 $uploads_dir = wp_upload_dir();318 319 317 /* 320 318 * We will be using the PHP max execution time to prevent the size calculations … … 339 337 } 340 338 339 // Go through the various installation directories and calculate their sizes. 341 340 $size_directories = array( 342 341 'wordpress' => array( … … 353 352 ), 354 353 'uploads' => array( 355 'path' => $upload s_dir['basedir'],354 'path' => $upload_dir['basedir'], 356 355 'size' => 0, 357 356 ),
Note: See TracChangeset
for help on using the changeset viewer.