Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217.

git-svn-id: https://develop.svn.wordpress.org/trunk@23571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2013-03-01 17:39:52 +00:00
parent 37fae23001
commit 15cc36bd4b

View File

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