[wp-trac] [WordPress Trac] #52241: Infinite loop in clean_dirsize_cache()
WordPress Trac
noreply at wordpress.org
Fri Jul 16 17:14:19 UTC 2021
#52241: Infinite loop in clean_dirsize_cache()
-------------------------------------------------+-------------------------
Reporter: raubvogel | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.9
Component: Filesystem API | Version: 5.6
Severity: major | Resolution:
Keywords: needs-unit-tests has-patch needs- | Focuses: multisite
testing |
-------------------------------------------------+-------------------------
Comment (by janthiel):
This also happens on Unix if the $path is empty. There should be added an
empty check for $path
{{{
if ( empty( $directory_cache ) || empty( $path ) ) {
return;
}
}}}
https://core.trac.wordpress.org/browser/tags/5.7.1/src/wp-
includes/functions.php#L7815
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52241#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list