WordPress.org

Make WordPress Core

Changeset 21783


Ignore:
Timestamp:
09/07/2012 09:10:43 PM (8 years ago)
Author:
nacin
Message:

Use wp_cache_add() in wp_mime_type_icon(). fixes #21835.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r21782 r21783  
    42194219                $icon = $types[$wilds[0]];
    42204220                if ( !is_numeric($mime) )
    4221                     wp_cache_set("mime_type_icon_$mime", $icon);
     4221                    wp_cache_add("mime_type_icon_$mime", $icon);
    42224222                break;
    42234223            }
Note: See TracChangeset for help on using the changeset viewer.