mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user