From f9823fb53ccb53b682a8768891d65fddc09aaf8d Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 14 Oct 2004 14:22:40 +0000 Subject: [PATCH] Seperate enclosure URLs by 1 space, not 3. git-svn-id: http://svn.automattic.com/wordpress/trunk@1800 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 9097a5e734..7c24e30154 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -379,7 +379,7 @@ $now_gmt = current_time('mysql', 1); } // Enclosures - $enclosures = split( " ", $enclosure_url ); + $enclosures = split( " ", $enclosure_url ); if( is_array( $enclosures ) ) { while( list( $key, $url ) = each( $enclosures ) ) { if( $url != '' ) { @@ -390,13 +390,9 @@ $now_gmt = current_time('mysql', 1); $headers = "HEAD $file HTTP/1.1\r\nHOST: $host\r\n\r\n"; $port = 80; $timeout = 3; - // Open a socket connection to the host - $fp = fsockopen($host, $port, $err_num, $err_msg, $timeout); + $fp = fsockopen($host, $port, &$err_num, &$err_msg, $timeout); if( $fp ) { - // Send request for the page fputs($fp, $headers ); - - // Get the response $response = ''; while (!feof($fp)) $response .= fgets($fp, 2048);