[wp-trac] [WordPress Trac] #46645: Site health: timeout on the "Info" tab
WordPress Trac
noreply at wordpress.org
Fri Mar 29 21:40:58 UTC 2019
#46645: Site health: timeout on the "Info" tab
-----------------------------------+------------------------
Reporter: azaozz | 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: multisite
-----------------------------------+------------------------
Comment (by azaozz):
Replying to [comment:26 jeremyfelt]:
> Oh, and I guess even more likely (though probably not much): a plugin or
theme with a `sites` directory inside it.
Hmm, should we make that `/sites` exclusion conditional on
`is_multisite()`? There's no point having it on single installs.
{{{
// On multisite exclude individual site directories from the total when
checking the main site,
// as they are subdirectories and should not be counted.
if ( is_multisite() && is_main_site() ) {
$dirsize[ $directory ]['size'] = recurse_dirsize( $directory,
$directory . '/sites', $max_execution_time );
........
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46645#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list