WordPress.org

Make WordPress Core

Changeset 17053


Ignore:
Timestamp:
12/19/2010 04:58:09 AM (7 years ago)
Author:
dd32
Message:

Revert debug cruft from r17052. See #15885

File:
1 edited

Legend:

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

    r17052 r17053  
    17631763
    17641764    $pung = get_pung($post_ID);
    1765 var_Dump(compact('pung'));
     1765
    17661766    // Variables
    17671767    $ltrs = '\w';
     
    17861786
    17871787    foreach ( (array) $post_links_temp[0] as $link_test ) :
    1788         if ( !in_array($link_test, $pung) && !in_array($link_test, $post_links) && (url_to_postid($link_test) != $post_ID) // If we haven't pung it already and it isn't a link to itself
     1788        if ( !in_array($link_test, $pung) && (url_to_postid($link_test) != $post_ID) // If we haven't pung it already and it isn't a link to itself
    17891789                && !is_local_attachment($link_test) ) : // Also, let's never ping local attachments.
    17901790            if ( $test = @parse_url($link_test) ) {
     
    17961796        endif;
    17971797    endforeach;
    1798 var_dump(compact('post_links', 'post_links_temp'));
     1798
    17991799    do_action_ref_array('pre_ping', array(&$post_links, &$pung));
    18001800
    18011801    foreach ( (array) $post_links as $pagelinkedto ) {
    18021802        $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );
    1803         var_dump(compact('pagelinkedto', 'pingback_server_url'));
    18041803
    18051804        if ( $pingback_server_url ) {
     
    18101809            // using a timeout of 3 seconds should be enough to cover slow servers
    18111810            $client = new WP_HTTP_IXR_Client($pingback_server_url);
    1812             $client->timeout = 5;
     1811            $client->timeout = 3;
    18131812            $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom);
    18141813            // when set to true, this outputs debug messages by itself
    1815             $client->debug = true;
     1814            $client->debug = false;
    18161815
    18171816            if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered
    18181817                add_ping( $post_ID, $pagelinkedto );
    1819             var_Dump($client);
    1820             echo '<hr />';
    18211818        }
    18221819    }
Note: See TracChangeset for help on using the changeset viewer.