From 5b684a6bfb7336eebde0f82ce3366ccfff58a6ed Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 22 Jun 2020 20:13:28 +0000 Subject: [PATCH] Site Health: Correct the check of whether the theme directory is writable when the current theme is symlinked into the theme directory. This ensures that the check is done on a sub-directory within `WP_CONTENT_DIR`, rather than outside of `ABSPATH`. Props pbiron, Clorith. Fixes #48199. git-svn-id: https://develop.svn.wordpress.org/trunk@48125 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-debug-data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index 248ebab8fe..ab058d02e1 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -328,7 +328,7 @@ class WP_Debug_Data { $is_writable_wp_content_dir = wp_is_writable( WP_CONTENT_DIR ); $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_template_directory() . '/..' ); + $is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) ); $info['wp-filesystem'] = array( 'label' => __( 'Filesystem Permissions' ),