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:
parent
d0d8ce1adb
commit
89e99f57a2
|
@ -328,7 +328,7 @@ class WP_Debug_Data {
|
||||||
$is_writable_wp_content_dir = wp_is_writable( WP_CONTENT_DIR );
|
$is_writable_wp_content_dir = wp_is_writable( WP_CONTENT_DIR );
|
||||||
$is_writable_upload_dir = wp_is_writable( $upload_dir['basedir'] );
|
$is_writable_upload_dir = wp_is_writable( $upload_dir['basedir'] );
|
||||||
$is_writable_wp_plugin_dir = wp_is_writable( WP_PLUGIN_DIR );
|
$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(
|
$info['wp-filesystem'] = array(
|
||||||
'label' => __( 'Filesystem Permissions' ),
|
'label' => __( 'Filesystem Permissions' ),
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue