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; + } } /**