Make WordPress Core

Changeset 58299

Timestamp:
06/03/2024 04:54:31 PM (8 weeks ago)
Author:
audrasjb
Message:

Site Health: Add fonts upload location to Site Health report.

Just like Site Health lists the paths to the plugins/themes/uploads directories, this changeset adds the path to the fonts directory (and its size).

Props swissspidy, andr3ribeiro, krupajnanda, ironprogrammer, iamfarhan09, naeemhaque, imasikur22, tofajjal02, sarkarripon, prottoysarkar, zunaid321, imranhasanraaz, rajinsharwar, nazmul111, audrasjb, peterwilsoncc.
Fixes #60719.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r57245 r58299  
    480480                'plugins_size'   => array(
    481481                    'label' => __( 'Plugins directory size' ),
     482
     483
     484
     485
     486
     487
     488
     489
     490
    482491                    'value' => $loading,
    483492                    'debug' => 'loading...',
     
    16371646            'plugins_size'   => WP_PLUGIN_DIR,
    16381647            'uploads_size'   => $upload_dir['basedir'],
     1648
    16391649        );
    16401650
  • trunk/src/wp-admin/site-health-info.php

    r56570 r58299  
    6565        <?php
    6666
    67         $sizes_fields = array( 'uploads_size', 'themes_size', 'plugins_size', 'wordpress_size', 'database_size', 'total_size' );
     67        $sizes_fields = array( 'uploads_size', 'themes_size', 'plugins_size', 'wordpress_size', 'database_size', 'total_size' );
    6868
    6969        foreach ( $info as $section => $details ) {
Note: See TracChangeset for help on using the changeset viewer.