Make checking enclosure URLs much faster - fclose() after blank line in response.
git-svn-id: https://develop.svn.wordpress.org/trunk@1820 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a7f2ca457b
commit
e7ecb7ad81
|
@ -816,7 +816,7 @@ function do_enclose( $content, $post_ID ) {
|
||||||
if( $fp ) {
|
if( $fp ) {
|
||||||
fputs($fp, $headers );
|
fputs($fp, $headers );
|
||||||
$response = '';
|
$response = '';
|
||||||
while (!feof($fp))
|
while ( !feof($fp) && strpos( $response, "\r\n\r\n" ) == false )
|
||||||
$response .= fgets($fp, 2048);
|
$response .= fgets($fp, 2048);
|
||||||
fclose( $fp );
|
fclose( $fp );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue