Make WordPress Core


Ignore:
Timestamp:
08/13/2008 11:37:42 PM (16 years ago)
Author:
ryan
Message:

Adds checking for fsockopen to check for WP_DEBUG and silently drop warnings. Adds streams_set_timeout to fsockopen to help prevent long waits. Props santosj. see #7514

File:
1 edited

Legend:

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

    r8630 r8644  
    146146    $raw_response = wp_remote_request('http://api.wordpress.org/plugins/update-check/1.0/', $options);
    147147
     148    if ( is_wp_error( $raw_response ) )
     149        return false;
     150
    148151    if( 200 != $raw_response['response']['code'] ) {
    149152        return false;
Note: See TracChangeset for help on using the changeset viewer.