Make WordPress Core


Ignore:
Timestamp:
08/16/2009 10:43:48 PM (15 years ago)
Author:
azaozz
Message:

Don use has_action() before do_action() in http.php, props Viper007Bond, fixes #10625

File:
1 edited

Legend:

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

    r11759 r11835  
    119119        }
    120120
    121         if ( has_filter('http_transport_get_debug') )
    122             do_action('http_transport_get_debug', $working_transport, $blocking_transport, $nonblocking_transport);
     121        do_action( 'http_transport_get_debug', $working_transport, $blocking_transport, $nonblocking_transport );
    123122
    124123        if ( isset($args['blocking']) && !$args['blocking'] )
     
    167166        }
    168167
    169         if ( has_filter('http_transport_post_debug') )
    170             do_action('http_transport_post_debug', $working_transport, $blocking_transport, $nonblocking_transport);
     168        do_action( 'http_transport_post_debug', $working_transport, $blocking_transport, $nonblocking_transport );
    171169
    172170        if ( isset($args['blocking']) && !$args['blocking'] )
     
    301299        }
    302300
    303         if ( has_action('http_api_debug') )
    304             do_action('http_api_debug', $transports, 'transports_list');
     301        do_action( 'http_api_debug', $transports, 'transports_list' );
    305302
    306303        $response = array( 'headers' => array(), 'body' => '', 'response' => array('code' => false, 'message' => false), 'cookies' => array() );
     
    308305            $response = $transport->request($url, $r);
    309306
    310             if ( has_action('http_api_debug') )
    311                 do_action( 'http_api_debug', $response, 'response', get_class($transport) );
     307            do_action( 'http_api_debug', $response, 'response', get_class($transport) );
    312308
    313309            if ( ! is_wp_error($response) )
Note: See TracChangeset for help on using the changeset viewer.