Make WordPress Core

Ticket #37007: 37007.3.diff

File 37007.3.diff, 821 bytes (added by rachelbaker, 8 years ago)

Included $tb_id in the action parameters

  • src/wp-trackback.php

     
    9192}
    9293
    9394if ( !empty($tb_url) && !empty($title) ) {
     95        /**
     96        * Fires before the trackback is added to a post.
     97        *
     98        * @since 4.7.0
     99        *
     100        * @param int    $tb_id     Post ID related to the trackback.
     101        * @param string $tb_url    Trackback URL.
     102        * @param string $charset   Character Set.
     103        * @param string $title     Trackback Title.
     104        * @param string $excerpt   Trackback Excerpt.
     105        * @param string $blog_name Blog Name.
     106        */
     107        do_action( 'pre_trackback_post', $tb_id, $tb_url, $charset, $title, $excerpt, $blog_name );
     108
    94109        header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
    95110
    96111        if ( !pings_open($tb_id) )