From c8366c5966b727d5542a2bc95c99cfd46158684c Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 29 Oct 2010 07:06:48 +0000 Subject: [PATCH] Don't pass deprecated argument to discover_pingback_server_uri! git-svn-id: https://develop.svn.wordpress.org/trunk@16068 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 5919021170..421de95dc9 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1775,7 +1775,7 @@ function pingback($content, $post_ID) { if ( $test = @parse_url($link_test) ) { if ( isset($test['query']) ) $post_links[] = $link_test; - elseif ( ($test['path'] != '/') && ($test['path'] != '') ) + elseif ( isset( $test['path'] ) && ( $test['path'] != '/' ) && ( $test['path'] != '' ) ) $post_links[] = $link_test; } endif; @@ -1784,7 +1784,7 @@ function pingback($content, $post_ID) { do_action_ref_array('pre_ping', array(&$post_links, &$pung)); foreach ( (array) $post_links as $pagelinkedto ) { - $pingback_server_url = discover_pingback_server_uri($pagelinkedto, 2048); + $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); if ( $pingback_server_url ) { @ set_time_limit( 60 );