mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
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:
parent
ecbd16bf50
commit
1f90fd76bf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user