WordPress.org

Make WordPress Core

Ticket #18506: patch.diff

File patch.diff, 523 bytes (added by alexkingorg, 3 years ago)

add pre_ping_post_links filter

  • wp-includes/comment.php

     
    18071807                endif; 
    18081808        endforeach; 
    18091809 
     1810        // opportunity for plugins to add URLs to be pinged (perhaps stored in post meta, etc.) 
     1811        $post_links = apply_filters('pre_ping_post_links', $post_links, $post_ID); 
     1812 
    18101813        do_action_ref_array('pre_ping', array(&$post_links, &$pung)); 
    18111814 
    18121815        foreach ( (array) $post_links as $pagelinkedto ) {