From 1e87ff8522448250d301c03fe02c615b398557b3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 24 Jun 2006 06:05:12 +0000 Subject: [PATCH] Silence pingomatic fsockopen. Props Mark Jaquith. fixes #2522 git-svn-id: https://develop.svn.wordpress.org/trunk@3917 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/update-links.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/update-links.php b/wp-admin/update-links.php index 46a7f5a831..eff00db09a 100644 --- a/wp-admin/update-links.php +++ b/wp-admin/update-links.php @@ -23,7 +23,7 @@ $http_request .= "\r\n"; $http_request .= $query_string; $response = ''; -if( false !== ( $fs = fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) { +if ( false !== ( $fs = @fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) { fwrite($fs, $http_request); while ( !feof($fs) ) $response .= fgets($fs, 1160); // One TCP-IP packet