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
This commit is contained in:
Sergey Biryukov 2020-06-22 20:15:14 +00:00
parent d0d8ce1adb
commit 89e99f57a2
2 changed files with 2 additions and 2 deletions

View File

@ -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' ),

View File

@ -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.