Multisite: More consistency for clean_dirsize_cache().

Props SergeyBiryukov.
Fixes #19879.


git-svn-id: https://develop.svn.wordpress.org/trunk@49616 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi
2020-11-16 22:29:42 +00:00
parent 740d99daf4
commit 56ffe940b0
4 changed files with 14 additions and 29 deletions

View File

@@ -5918,7 +5918,7 @@ function wp_delete_attachment( $post_id, $force_delete = false ) {
$file = get_attached_file( $post_id );
if ( is_multisite() ) {
invalidate_dirsize_cache( $file );
clean_dirsize_cache( $file );
}
/**