WordPress.org

Make WordPress Core

Ticket #18506: patch_v2.diff

File patch_v2.diff, 501 bytes (added by devesine, 4 years ago)

add post_ID to pre_ping action hook

  • wp-includes/comment.php

     
    18161816                endif; 
    18171817        endforeach; 
    18181818 
    1819         do_action_ref_array('pre_ping', array(&$post_links, &$pung)); 
     1819        do_action_ref_array('pre_ping', array(&$post_links, &$pung, $post_ID)); 
    18201820 
    18211821        foreach ( (array) $post_links as $pagelinkedto ) { 
    18221822                $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );