Make WordPress Core

Changeset 16065


Ignore:
Timestamp:
10/28/2010 10:15:54 PM (16 years ago)
Author:
westi
Message:

Switch to using WP_HTTP_IXR_Client in core. See #10588.

File:
1 edited

Legend:

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

    r16020 r16065  
    17421742        global $wp_version;
    17431743        include_once(ABSPATH . WPINC . '/class-IXR.php');
    1744 
     1744        include_once(ABSPATH . WPINC . '/class.wp-http-ixr-client.php');
     1745       
    17451746        // original code by Mort (http://mort.mine.nu:8080)
    17461747        $post_links = array();
    … …  
    17921793
    17931794                        // using a timeout of 3 seconds should be enough to cover slow servers
    1794                         $client = new IXR_Client($pingback_server_url);
     1795                        $client = new WP_HTTP_IXR_Client($pingback_server_url);
    17951796                        $client->timeout = 3;
    17961797                        $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom);
    … …  
    18711872        global $wp_version;
    18721873        include_once(ABSPATH . WPINC . '/class-IXR.php');
     1874        include_once(ABSPATH . WPINC . '/class.wp-http-ixr-client.php');
    18731875
    18741876        // using a timeout of 3 seconds should be enough to cover slow servers
    1875         $client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
     1877        $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
    18761878        $client->timeout = 3;
    18771879        $client->useragent .= ' -- WordPress/'.$wp_version;
Note: See TracChangeset for help on using the changeset viewer.