Make WordPress Core


Ignore:
Timestamp:
04/16/2019 11:01:45 PM (7 years ago)
Author:
azaozz
Message:

Site health, info tab:

  • Change recurse_dirsize() to accept an array of excluded paths.
  • Change so we don't calculate the sizes of dirs in wp-content twice.
  • Add the size in bytes to the "debug" into.
  • Add a custom DOM event after the dir sizes request is done. Can be used by plugins to "daisy chain" more requests.
  • Move "WordPress directory location" and "WordPress directory size" to the top in the "Directories and Sizes" section.
  • Move "Theme directory location" to the "Active Theme" section.
  • Fix labels capitalization.

Props xkon, afercia, Clorith, azaozz.
Fixes #46707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r45190 r45220  
    49774977
    49784978    $sizes_data = WP_Debug_Data::get_sizes();
    4979     $all_sizes  = array();
     4979    $all_sizes  = array( 'raw' => 0 );
    49804980
    49814981    foreach ( $sizes_data as $name => $value ) {
     
    49994999        }
    50005000
     5001        if ( ! empty( $value['raw'] ) ) {
     5002            $data['raw'] = (int) $value['raw'];
     5003        }
     5004
    50015005        $all_sizes[ $name ] = $data;
    50025006    }
Note: See TracChangeset for help on using the changeset viewer.