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:
Sergey Biryukov 2013-03-01 17:39:52 +00:00
parent 09d2c65970
commit 4847fe6efc

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