From 6d5385be8d934bea5ae5144917eaea60e926a7c2 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 6 Mar 2015 20:27:49 +0000 Subject: [PATCH] After [31645], for the `default` `case`, return the result of checking the extension against the passed type. See #25275. git-svn-id: https://develop.svn.wordpress.org/trunk@31646 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 6a4d62c15d..334a0b8c0c 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -5106,9 +5106,10 @@ function wp_attachment_is( $type, $post_id = 0 ) { case 'video': return in_array( $ext, wp_get_video_extensions() ); - } - return false; + default: + return $type === $ext; + } } /**