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
This commit is contained in:
parent
76d743274a
commit
c8366c5966
|
@ -1775,7 +1775,7 @@ function pingback($content, $post_ID) {
|
||||||
if ( $test = @parse_url($link_test) ) {
|
if ( $test = @parse_url($link_test) ) {
|
||||||
if ( isset($test['query']) )
|
if ( isset($test['query']) )
|
||||||
$post_links[] = $link_test;
|
$post_links[] = $link_test;
|
||||||
elseif ( ($test['path'] != '/') && ($test['path'] != '') )
|
elseif ( isset( $test['path'] ) && ( $test['path'] != '/' ) && ( $test['path'] != '' ) )
|
||||||
$post_links[] = $link_test;
|
$post_links[] = $link_test;
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
|
@ -1784,7 +1784,7 @@ function pingback($content, $post_ID) {
|
||||||
do_action_ref_array('pre_ping', array(&$post_links, &$pung));
|
do_action_ref_array('pre_ping', array(&$post_links, &$pung));
|
||||||
|
|
||||||
foreach ( (array) $post_links as $pagelinkedto ) {
|
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 ) {
|
if ( $pingback_server_url ) {
|
||||||
@ set_time_limit( 60 );
|
@ set_time_limit( 60 );
|
||||||
|
|
Loading…
Reference in New Issue