Notice fixes from DD32. see #7509

git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-10 18:54:18 +00:00
parent e25c585f4f
commit 83e002f20b
16 changed files with 54 additions and 40 deletions
+6 -5
View File
@@ -1392,11 +1392,12 @@ function pingback($content, $post_ID) {
foreach ( (array) $post_links_temp[0] as $link_test ) :
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
&& !is_local_attachment($link_test) ) : // Also, let's never ping local attachments.
$test = parse_url($link_test);
if ( isset($test['query']) )
$post_links[] = $link_test;
elseif ( ($test['path'] != '/') && ($test['path'] != '') )
$post_links[] = $link_test;
if ( $test = @parse_url($link_test) ) {
if ( isset($test['query']) )
$post_links[] = $link_test;
elseif ( ($test['path'] != '/') && ($test['path'] != '') )
$post_links[] = $link_test;
}
endif;
endforeach;