From 89e99f57a2a175ccb75282d1a7eefb0bfce94bcb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 22 Jun 2020 20:15:14 +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. Built from https://develop.svn.wordpress.org/trunk@48125 git-svn-id: http://core.svn.wordpress.org/trunk@47894 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 248ebab8fe..ab058d02e1 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/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' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 4181a4b7dc..7a5e28c129 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48124'; +$wp_version = '5.5-alpha-48125'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.