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
This commit is contained in:
parent
517c27e297
commit
5b684a6bfb
@ -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' ),
|
||||
|
Loading…
Reference in New Issue
Block a user