Make WordPress Core

Ticket #21828: wp_mime_type_icon.patch

File wp_mime_type_icon.patch, 505 bytes (added by mark8barnes, 12 years ago)
  • wp-includes/post.php

     
    40494049 * @return string|bool
    40504050 */
    40514051function wp_mime_type_icon( $mime = 0 ) {
     4052        $post_id = 0;
    40524053        if ( !is_numeric($mime) )
    40534054                $icon = wp_cache_get("mime_type_icon_$mime");
    40544055        if ( empty($icon) ) {
    4055                 $post_id = 0;
    40564056                $post_mimes = array();
    40574057                if ( is_numeric($mime) ) {
    40584058                        $mime = (int) $mime;