From 33b00f6c71591f839ef3fcbadca79eca6bec382b Mon Sep 17 00:00:00 2001 From: Donncha O Caoimh Date: Tue, 11 Jan 2005 17:07:54 +0000 Subject: [PATCH] removed images from enclosure scanning. git-svn-id: https://develop.svn.wordpress.org/trunk@2081 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 407be654b7..ab5084ec8e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; } -?> \ No newline at end of file +?>