From 0c81ddb8d2622315d2d5f3dc50195d1b8b0992dc Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 4 Feb 2009 20:27:30 +0000 Subject: [PATCH] Allow + in mime type regex. Props Sam_a. fixes #8991 git-svn-id: http://svn.automattic.com/wordpress/trunk@10502 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 75dd927aad..f50d954449 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1059,7 +1059,7 @@ function wp_post_mime_type_where($post_mime_types) { $slashpos = strpos($mime_type, '/'); if ( false !== $slashpos ) { $mime_group = preg_replace('/[^-*.a-zA-Z0-9]/', '', substr($mime_type, 0, $slashpos)); - $mime_subgroup = preg_replace('/[^-*.a-zA-Z0-9]/', '', substr($mime_type, $slashpos + 1)); + $mime_subgroup = preg_replace('/[^-*.+a-zA-Z0-9]/', '', substr($mime_type, $slashpos + 1)); if ( empty($mime_subgroup) ) $mime_subgroup = '*'; else