From c6d62b17e13e02dbb89f42e86e09d9c4803367bc Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 3 Jun 2024 16:56:16 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@58299 git-svn-id: http://core.svn.wordpress.org/trunk@57759 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 10 ++++++++++ wp-admin/site-health-info.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index ed6a9e75a47..a983ff7a1bc 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -482,6 +482,15 @@ public static function debug_data() { 'value' => $loading, 'debug' => 'loading...', ), + 'fonts_path' => array( + 'label' => __( 'Fonts directory location' ), + 'value' => wp_get_font_dir()['basedir'], + ), + 'fonts_size' => array( + 'label' => __( 'Fonts directory size' ), + 'value' => $loading, + 'debug' => 'loading...', + ), 'database_size' => array( 'label' => __( 'Database size' ), 'value' => $loading, @@ -1636,6 +1645,7 @@ public static function get_sizes() { 'themes_size' => get_theme_root(), 'plugins_size' => WP_PLUGIN_DIR, 'uploads_size' => $upload_dir['basedir'], + 'fonts_size' => wp_get_font_dir()['basedir'], ); $exclude = $paths; diff --git a/wp-admin/site-health-info.php b/wp-admin/site-health-info.php index 46b329adb6c..2f23f830685 100644 --- a/wp-admin/site-health-info.php +++ b/wp-admin/site-health-info.php @@ -64,7 +64,7 @@ $details ) { if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 2c46c492744..8855bd235df 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58298'; +$wp_version = '6.6-alpha-58299'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.