[wp-trac] [WordPress Trac] #46954: Site Health: Hide "Directories and Sizes" for Multisite installations
WordPress Trac
noreply at wordpress.org
Wed Apr 17 08:58:31 UTC 2019
#46954: Site Health: Hide "Directories and Sizes" for Multisite installations
-------------------------------------+-------------------------------------
Reporter: xkon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: site-health has-patch | Focuses: ui, administration,
commit | multisite
-------------------------------------+-------------------------------------
Comment (by mukesh27):
@xkon, In {{{ wp-admin/includes/class-wp-debug-data.php }}} file system
already define multisite variable {{{$is_multisite}}} and it is define at
top {{{ $is_multisite = is_multisite() }}} of the file so we we replace
below condition?
{{{
if ( is_multisite() ) {
unset( $info['wp-paths-sizes'] );
}
}}}
Replace to
{{{
if ( $is_multisite ) {
unset( $info['wp-paths-sizes'] );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46954#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list