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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-11 21:35:36 +00:00
parent 96abeca9f3
commit ba29615e7e
1 changed files with 2 additions and 1 deletions

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