Make WordPress Core


Ignore:
Timestamp:
06/03/2024 04:54:31 PM (20 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.