mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
3c34012a6b
commit
b8190acec8
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user