diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 96ab53766b..7bbbaacf17 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -634,10 +634,11 @@ function pingback($content, $post_ID) { $post_links[] = $link_test; elseif(($test['path'] != '/') && ($test['path'] != '')) $post_links[] = $link_test; - do_action('pre_ping', array(&$post_links, &$pung)); endif; endforeach; + do_action('pre_ping', array(&$post_links, &$pung)); + foreach ($post_links as $pagelinkedto){ debug_fwrite($log, "Processing -- $pagelinkedto\n"); $pingback_server_url = discover_pingback_server_uri($pagelinkedto, 2048);