Don't pass deprecated argument to discover_pingback_server_uri!

git-svn-id: http://svn.automattic.com/wordpress/trunk@16068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-10-29 07:06:48 +00:00
parent b51eb08234
commit 4ef6fab485
1 changed files with 2 additions and 2 deletions

View File

@ -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 );