From 15cc36bd4b2e1d1fd1e0ce7f97b3d5c4f88e4935 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 1 Mar 2013 17:39:52 +0000 Subject: [PATCH] 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 --- wp-includes/comment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 65e18a7e4a..7ad081d8a6 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -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 ) {