Trigger pre_ping action outside of loop. Props Mark Jaquith. fixes #2269

git-svn-id: https://develop.svn.wordpress.org/trunk@3427 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-01-11 21:35:36 +00:00
parent ecbd16bf50
commit 1f90fd76bf

View File

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