Changeset 17053 for trunk/wp-includes/comment.php
- Timestamp:
- 12/19/2010 04:58:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r17052 r17053 1763 1763 1764 1764 $pung = get_pung($post_ID); 1765 var_Dump(compact('pung')); 1765 1766 1766 // Variables 1767 1767 $ltrs = '\w'; … … 1786 1786 1787 1787 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 itself1788 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 1789 1789 && !is_local_attachment($link_test) ) : // Also, let's never ping local attachments. 1790 1790 if ( $test = @parse_url($link_test) ) { … … 1796 1796 endif; 1797 1797 endforeach; 1798 var_dump(compact('post_links', 'post_links_temp')); 1798 1799 1799 do_action_ref_array('pre_ping', array(&$post_links, &$pung)); 1800 1800 1801 1801 foreach ( (array) $post_links as $pagelinkedto ) { 1802 1802 $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); 1803 var_dump(compact('pagelinkedto', 'pingback_server_url'));1804 1803 1805 1804 if ( $pingback_server_url ) { … … 1810 1809 // using a timeout of 3 seconds should be enough to cover slow servers 1811 1810 $client = new WP_HTTP_IXR_Client($pingback_server_url); 1812 $client->timeout = 5;1811 $client->timeout = 3; 1813 1812 $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom); 1814 1813 // when set to true, this outputs debug messages by itself 1815 $client->debug = true;1814 $client->debug = false; 1816 1815 1817 1816 if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered 1818 1817 add_ping( $post_ID, $pagelinkedto ); 1819 var_Dump($client);1820 echo '<hr />';1821 1818 } 1822 1819 }
Note: See TracChangeset
for help on using the changeset viewer.