WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/22/2020 08:13:28 PM (15 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r47859 r48125  
    329329        $is_writable_upload_dir         = wp_is_writable( $upload_dir['basedir'] );
    330330        $is_writable_wp_plugin_dir      = wp_is_writable( WP_PLUGIN_DIR );
    331         $is_writable_template_directory = wp_is_writable( get_template_directory() . '/..' );
     331        $is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) );
    332332
    333333        $info['wp-filesystem'] = array(
Note: See TracChangeset for help on using the changeset viewer.