From 8a46609b03580bc111f44012700722700f436c46 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 7 Sep 2012 21:10:43 +0000 Subject: [PATCH] Use wp_cache_add() in wp_mime_type_icon(). fixes #21835. git-svn-id: http://core.svn.wordpress.org/trunk@21783 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 4be2d547a5..7b5fb7e13c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4218,7 +4218,7 @@ function wp_mime_type_icon( $mime = 0 ) { if ( isset($types[$wilds[0]])) { $icon = $types[$wilds[0]]; if ( !is_numeric($mime) ) - wp_cache_set("mime_type_icon_$mime", $icon); + wp_cache_add("mime_type_icon_$mime", $icon); break; } }