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
This commit is contained in:
parent
8f0b626d13
commit
aabe0bcc2c
|
@ -5106,9 +5106,10 @@ function wp_attachment_is( $type, $post_id = 0 ) {
|
||||||
|
|
||||||
case 'video':
|
case 'video':
|
||||||
return in_array( $ext, wp_get_video_extensions() );
|
return in_array( $ext, wp_get_video_extensions() );
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
default:
|
||||||
|
return $type === $ext;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue