Make WordPress Core

Changeset 58299


Ignore:
Timestamp:
06/03/2024 04:54:31 PM (5 months 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                    'value' => $loading,
     483                    'debug' => 'loading...',
     484                ),
     485                'fonts_path'   => array(
     486                    'label' => __( 'Fonts directory location' ),
     487                    'value' => wp_get_font_dir()['basedir'],
     488                ),
     489                'fonts_size'   => array(
     490                    'label' => __( 'Fonts directory size' ),
    482491                    'value' => $loading,
    483492                    'debug' => 'loading...',
     
    16371646            'plugins_size'   => WP_PLUGIN_DIR,
    16381647            'uploads_size'   => $upload_dir['basedir'],
     1648            'fonts_size'     => wp_get_font_dir()['basedir'],
    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', 'fonts_size', 'wordpress_size', 'database_size', 'total_size' );
    6868
    6969        foreach ( $info as $section => $details ) {
Note: See TracChangeset for help on using the changeset viewer.