From aabe0bcc2c38067308731978c14352a8fb9a37bf Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 6 Mar 2015 20:28:26 +0000 Subject: [PATCH] After [31645], for the `default` `case`, return the result of checking the extension against the passed type. See #25275. Built from https://develop.svn.wordpress.org/trunk@31646 git-svn-id: http://core.svn.wordpress.org/trunk@31627 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 6a4d62c15d..334a0b8c0c 100644 --- a/wp-includes/post.php +++ b/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; + } } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 4f029931b5..29c9ba0589 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31645'; +$wp_version = '4.2-alpha-31646'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.