WordPress.org

Make WordPress Core

Changeset 8052


Ignore:
Timestamp:
06/04/2008 11:36:55 PM (10 years ago)
Author:
ryan
Message:

close the socket in discover_pingback_server_uri

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r8004 r8052  
    10021002            $pingback_server_url = substr($contents, $pingback_href_start, $pingback_server_url_len);
    10031003            // We may find rel="pingback" but an incomplete pingback URL
    1004             if ( $pingback_server_url_len > 0 ) // We got it!
     1004            if ( $pingback_server_url_len > 0 ) { // We got it!
     1005                fclose($fp);
    10051006                return $pingback_server_url;
     1007            }
    10061008        }
    10071009        $byte_count += strlen($line);
     
    10091011            // It's no use going further, there probably isn't any pingback
    10101012            // server to find in this file. (Prevents loading large files.)
     1013            fclose($fp);
    10111014            return false;
    10121015        }
     
    10141017
    10151018    // We didn't find anything.
     1019    fclose($fp);
    10161020    return false;
    10171021}
Note: See TracChangeset for help on using the changeset viewer.