Make WordPress Core


Ignore:
Timestamp:
11/05/2005 04:20:09 PM (21 years ago)
Author:
ryan
Message:

Don't self ping. Props Mark Jaquith fixes #993

File:
1 edited

Legend:

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

    r2942 r2983  
    591591
    592592    foreach($post_links_temp[0] as $link_test) :
    593         if ( !in_array($link_test, $pung) ) : // If we haven't pung it already
     593        if ( !in_array($link_test, $pung) && url_to_postid($link_test) != $post_ID) : // If we haven't pung it already and it isn't a link to itself
    594594            $test = parse_url($link_test);
    595595            if (isset($test['query']))
Note: See TracChangeset for help on using the changeset viewer.