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:
parent
96abeca9f3
commit
ba29615e7e
|
@ -634,10 +634,11 @@ function pingback($content, $post_ID) {
|
||||||
$post_links[] = $link_test;
|
$post_links[] = $link_test;
|
||||||
elseif(($test['path'] != '/') && ($test['path'] != ''))
|
elseif(($test['path'] != '/') && ($test['path'] != ''))
|
||||||
$post_links[] = $link_test;
|
$post_links[] = $link_test;
|
||||||
do_action('pre_ping', array(&$post_links, &$pung));
|
|
||||||
endif;
|
endif;
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
||||||
|
do_action('pre_ping', array(&$post_links, &$pung));
|
||||||
|
|
||||||
foreach ($post_links as $pagelinkedto){
|
foreach ($post_links as $pagelinkedto){
|
||||||
debug_fwrite($log, "Processing -- $pagelinkedto\n");
|
debug_fwrite($log, "Processing -- $pagelinkedto\n");
|
||||||
$pingback_server_url = discover_pingback_server_uri($pagelinkedto, 2048);
|
$pingback_server_url = discover_pingback_server_uri($pagelinkedto, 2048);
|
||||||
|
|
Loading…
Reference in New Issue