removed images from enclosure scanning.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
donncha 2005-01-11 17:07:54 +00:00
parent 3c34012a6b
commit b8190acec8
1 changed files with 2 additions and 2 deletions

View File

@ -783,7 +783,7 @@ function do_enclose( $content, $post_ID ) {
$len = substr( $len, 0, strpos( $len, "\n" ) );
$type = substr( $response, strpos( $response, "Content-Type:" ) + 14 );
$type = substr( $type, 0, strpos( $type, "\n" ) + 1 );
$allowed_types = array( "video", "audio", "image" );
$allowed_types = array( "video", "audio" );
if( in_array( substr( $type, 0, strpos( $type, "/" ) ), $allowed_types ) ) {
$meta_value = "$url\n$len\n$type\n";
$query = "INSERT INTO `".$wpdb->postmeta."` ( `meta_id` , `post_id` , `meta_key` , `meta_value` )
@ -1623,4 +1623,4 @@ function add_magic_quotes($array) {
return $array;
}
?>
?>