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
This commit is contained in:
parent
aa44628997
commit
c6d62b17e1
|
@ -482,6 +482,15 @@ class WP_Debug_Data {
|
||||||
'value' => $loading,
|
'value' => $loading,
|
||||||
'debug' => '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(
|
'database_size' => array(
|
||||||
'label' => __( 'Database size' ),
|
'label' => __( 'Database size' ),
|
||||||
'value' => $loading,
|
'value' => $loading,
|
||||||
|
@ -1636,6 +1645,7 @@ class WP_Debug_Data {
|
||||||
'themes_size' => get_theme_root(),
|
'themes_size' => get_theme_root(),
|
||||||
'plugins_size' => WP_PLUGIN_DIR,
|
'plugins_size' => WP_PLUGIN_DIR,
|
||||||
'uploads_size' => $upload_dir['basedir'],
|
'uploads_size' => $upload_dir['basedir'],
|
||||||
|
'fonts_size' => wp_get_font_dir()['basedir'],
|
||||||
);
|
);
|
||||||
|
|
||||||
$exclude = $paths;
|
$exclude = $paths;
|
||||||
|
|
|
@ -64,7 +64,7 @@ wp_admin_notice(
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sizes_fields = array( 'uploads_size', 'themes_size', 'plugins_size', 'wordpress_size', 'database_size', 'total_size' );
|
$sizes_fields = array( 'uploads_size', 'themes_size', 'plugins_size', 'fonts_size', 'wordpress_size', 'database_size', 'total_size' );
|
||||||
|
|
||||||
foreach ( $info as $section => $details ) {
|
foreach ( $info as $section => $details ) {
|
||||||
if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) {
|
if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue