diff --git a/wp-includes/post-functions.php b/wp-includes/post-functions.php index c4640d5fe7..04f888a055 100644 --- a/wp-includes/post-functions.php +++ b/wp-includes/post-functions.php @@ -5081,11 +5081,16 @@ function wp_mime_type_icon( $mime = 0 ) { $matches['default'] = array('default'); foreach ( $matches as $match => $wilds ) { - if ( isset($types[$wilds[0]])) { - $icon = $types[$wilds[0]]; - if ( !is_numeric($mime) ) - wp_cache_add("mime_type_icon_$mime", $icon); - break; + foreach ( $wilds as $wild ) { + if ( ! isset( $types[ $wild ] ) ) { + continue; + } + + $icon = $types[ $wild ]; + if ( ! is_numeric( $mime ) ) { + wp_cache_add( "mime_type_icon_$mime", $icon ); + } + break 2; } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0bffdad5cc..e0725d8f86 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34254'; +$wp_version = '4.4-alpha-34255'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.