From 0b01f311d1c4916ab3f144573054b7bd23b0bd2c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 6 Mar 2012 22:44:44 +0000 Subject: [PATCH] Add $post_ID context to the pre_ping filter. props alexkingorg, devesine. fixes #18506. git-svn-id: https://develop.svn.wordpress.org/trunk@20127 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 5a526305f8..c522cf53ea 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1816,7 +1816,7 @@ function pingback($content, $post_ID) { endif; endforeach; - do_action_ref_array('pre_ping', array(&$post_links, &$pung)); + do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) ); foreach ( (array) $post_links as $pagelinkedto ) { $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );