WordPress.org

Make WordPress Core

Ticket #7751: functions-timeout-addition.patch

File functions-timeout-addition.patch, 458 bytes (added by noel, 10 years ago)

wp_remote_fopen is now set to use stream_set_timeout()

  • wp-includes/functions.php

     
    12961296                if ( !$fp )
    12971297                        return false;
    12981298
    1299                 //stream_set_timeout($fp, $timeout); // Requires php 4.3
     1299                stream_set_timeout($fp, $timeout); // Requires php 4.3
    13001300                $linea = '';
    13011301                while ( $remote_read = fread( $fp, 4096 ) )
    13021302                        $linea .= $remote_read;