diff options
Diffstat (limited to 'wp-admin/includes/class-wp-debug-data.php')
-rw-r--r-- | wp-admin/includes/class-wp-debug-data.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index ed6a9e7..2d6fb41 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -134,6 +134,7 @@ class WP_Debug_Data { if ( ! $is_multisite ) { $info['wp-paths-sizes'] = array( + /* translators: Filesystem directory paths and storage sizes. */ 'label' => __( 'Directories and Sizes' ), 'fields' => array(), ); @@ -346,6 +347,7 @@ class WP_Debug_Data { $is_writable_upload_dir = wp_is_writable( $upload_dir['basedir'] ); $is_writable_wp_plugin_dir = wp_is_writable( WP_PLUGIN_DIR ); $is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) ); + $is_writable_fonts_dir = wp_is_writable( wp_get_font_dir()['basedir'] ); $info['wp-filesystem'] = array( 'label' => __( 'Filesystem Permissions' ), @@ -376,6 +378,11 @@ class WP_Debug_Data { 'value' => ( $is_writable_template_directory ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_template_directory ? 'writable' : 'not writable' ), ), + 'fonts' => array( + 'label' => __( 'The fonts directory' ), + 'value' => ( $is_writable_fonts_dir ? __( 'Writable' ) : __( 'Not writable' ) ), + 'debug' => ( $is_writable_fonts_dir ? 'writable' : 'not writable' ), + ), ), ); @@ -482,6 +489,15 @@ class WP_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 +1652,7 @@ class WP_Debug_Data { 'themes_size' => get_theme_root(), 'plugins_size' => WP_PLUGIN_DIR, 'uploads_size' => $upload_dir['basedir'], + 'fonts_size' => wp_get_font_dir()['basedir'], ); $exclude = $paths; |