Add $post_ID context to the pre_ping filter. props alexkingorg, devesine. fixes #18506.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
820ebbab9e
commit
8199ae99aa
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue