Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217.
git-svn-id: http://core.svn.wordpress.org/trunk@23571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
09d2c65970
commit
4847fe6efc
|
@ -1845,6 +1845,7 @@ function pingback($content, $post_ID) {
|
|||
endif;
|
||||
endforeach;
|
||||
|
||||
$post_links = array_unique( $post_links );
|
||||
do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) );
|
||||
|
||||
foreach ( (array) $post_links as $pagelinkedto ) {
|
||||
|
|
Loading…
Reference in New Issue