Make checking enclosure URLs much faster - fclose() after blank line in response.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
279385f199
commit
2bef1de2b9
|
@ -816,7 +816,7 @@ function do_enclose( $content, $post_ID ) {
|
|||
if( $fp ) {
|
||||
fputs($fp, $headers );
|
||||
$response = '';
|
||||
while (!feof($fp))
|
||||
while ( !feof($fp) && strpos( $response, "\r\n\r\n" ) == false )
|
||||
$response .= fgets($fp, 2048);
|
||||
fclose( $fp );
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue