mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +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:
parent
d539c11a94
commit
b489c2b242
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user