diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php
index 377e3c0201..219ebb3e12 100644
--- a/wp-admin/includes/class-wp-media-list-table.php
+++ b/wp-admin/includes/class-wp-media-list-table.php
@@ -75,7 +75,7 @@ class WP_Media_List_Table extends WP_List_Table {
if ( !empty( $_GET['attachment-filter'] ) && strpos( $_GET['attachment-filter'], 'post_mime_type:' ) === 0 && wp_match_mime_types( $mime_type, str_replace( 'post_mime_type:', '', $_GET['attachment-filter'] ) ) )
$selected = ' selected="selected"';
if ( !empty( $num_posts[$mime_type] ) )
- $type_links[$mime_type] = '';
+ $type_links[$mime_type] = '';
}
$type_links['detached'] = '';
diff --git a/wp-includes/post.php b/wp-includes/post.php
index 49ca9e243e..231741607e 100644
--- a/wp-includes/post.php
+++ b/wp-includes/post.php
@@ -2478,11 +2478,14 @@ function wp_match_mime_types( $wildcard_mime_types, $real_mime_types ) {
$wild = '[-._a-z0-9]*';
foreach ( (array) $wildcard_mime_types as $type ) {
- $regex = str_replace( '__wildcard__', $wild, preg_quote( str_replace( '*', '__wildcard__', $type ) ) );
- $patternses[1][$type] = "^$regex$";
- if ( false === strpos($type, '/') ) {
- $patternses[2][$type] = "^$regex/";
- $patternses[3][$type] = $regex;
+ $mimes = array_map( 'trim', explode( ',', $type ) );
+ foreach ( $mimes as $mime ) {
+ $regex = str_replace( '__wildcard__', $wild, preg_quote( str_replace( '*', '__wildcard__', $mime ) ) );
+ $patternses[][$type] = "^$regex$";
+ if ( false === strpos( $mime, '/' ) ) {
+ $patternses[][$type] = "^$regex/";
+ $patternses[][$type] = $regex;
+ }
}
}
asort( $patternses );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index c76b980c46..4863f38b50 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.2-alpha-31041';
+$wp_version = '4.2-alpha-31042';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.