WordPress.org

Make WordPress Core

Changeset 21782


Ignore:
Timestamp:
09/07/2012 09:04:58 PM (8 years ago)
Author:
koopersmith
Message:

Ensure $post_id is defined in wp_mime_type_icon() to prevent notices when a valid mime type string is provided. see #21835.

File:
1 edited

Legend:

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

    r21735 r21782  
    41514151    if ( !is_numeric($mime) )
    41524152        $icon = wp_cache_get("mime_type_icon_$mime");
     4153
     4154    $post_id = 0;
    41534155    if ( empty($icon) ) {
    4154         $post_id = 0;
    41554156        $post_mimes = array();
    41564157        if ( is_numeric($mime) ) {
Note: See TracChangeset for help on using the changeset viewer.