Make WordPress Core

Changeset 8584


Ignore:
Timestamp:
08/07/2008 10:57:16 PM (18 years ago)
Author:
ryan
Message:

Fixes cURL for Cron in non-blocking mode. Props santosj. fixes #7481 see #4779

File:
1 edited

Legend:

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

    r8583 r8584  
    872872                if ( true === $r['blocking'] ) {
    873873                        curl_setopt( $handle, CURLOPT_HEADER, true );
     874                        curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1 );
    874875                } else {
    875876                        curl_setopt( $handle, CURLOPT_HEADER, false );
    876877                        curl_setopt( $handle, CURLOPT_NOBODY, true );
     878                        curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 0 );
    877879                }
    878880
     
    895897
    896898                if ( ! $r['blocking'] ) {
     899                        curl_exec( $handle );
    897900                        curl_close( $handle );
    898901                        return array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') );
Note: See TracChangeset for help on using the changeset viewer.