mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 14:44:37 +00:00
Use wp_cache_add() in wp_mime_type_icon(). fixes #21835.
git-svn-id: https://develop.svn.wordpress.org/trunk@21783 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user