Make WordPress Core


Ignore:
Timestamp:
11/06/2005 04:02:12 AM (18 years ago)
Author:
ryan
Message:

Protection against multiple trackbacks in one bunch from markjaquith. fixes #1817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r2969 r2996  
    623623    if ($to_ping) : foreach ($to_ping as $tb_ping) :
    624624        $tb_ping = trim($tb_ping);
    625         if ( !in_array($tb_ping, $pinged) )
    626          trackback($tb_ping, $post_title, $excerpt, $post_id);
     625        if ( !in_array($tb_ping, $pinged) ) {
     626            trackback($tb_ping, $post_title, $excerpt, $post_id);
     627            $pinged[] = $tb_ping;
     628        }
    627629    endforeach; endif;
    628630}
Note: See TracChangeset for help on using the changeset viewer.