From 4cba7e30e0709ebd74333a278da528e4af3f821a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 19 Nov 2012 08:31:43 +0000 Subject: [PATCH] Call wp_cache_set() with a group and then an expiration in wp_mime_type_icon(). fixes #22503. see #22186. git-svn-id: https://develop.svn.wordpress.org/trunk@22674 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index b4166ea0e2..582b94cee0 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4338,7 +4338,7 @@ function wp_mime_type_icon( $mime = 0 ) { closedir($dh); } } - wp_cache_set('icon_files', $icon_files, 600); + wp_cache_set( 'icon_files', $icon_files, 'default', 600 ); } // Icon basename - extension = MIME wildcard