Changeset 59853
- Timestamp:
- 02/21/2025 02:50:17 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r59290 r59853 1647 1647 private static function get_wp_filesystem(): array { 1648 1648 $upload_dir = wp_upload_dir(); 1649 $fonts_dir_exists = file_exists( wp_get_font_dir()['basedir'] ); 1649 1650 $is_writable_abspath = wp_is_writable( ABSPATH ); 1650 1651 $is_writable_wp_content_dir = wp_is_writable( WP_CONTENT_DIR ); … … 1652 1653 $is_writable_wp_plugin_dir = wp_is_writable( WP_PLUGIN_DIR ); 1653 1654 $is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) ); 1654 $is_writable_fonts_dir = wp_is_writable( wp_get_font_dir()['basedir'] );1655 $is_writable_fonts_dir = $fonts_dir_exists ? wp_is_writable( wp_get_font_dir()['basedir'] ) : false; 1655 1656 1656 1657 $fields = array( … … 1682 1683 'fonts' => array( 1683 1684 'label' => __( 'The fonts directory' ), 1684 'value' => ( $is_writable_fonts_dir ? __( 'Writable' ) : __( 'Not writable' ) ), 1685 'debug' => ( $is_writable_fonts_dir ? 'writable' : 'not writable' ), 1685 'value' => $fonts_dir_exists 1686 ? ( $is_writable_fonts_dir ? __( 'Writable' ) : __( 'Not writable' ) ) 1687 : __( 'Does not exist' ), 1688 'debug' => $fonts_dir_exists 1689 ? ( $is_writable_fonts_dir ? 'writable' : 'not writable' ) 1690 : 'does not exist', 1686 1691 ), 1687 1692 );
Note: See TracChangeset
for help on using the changeset viewer.