Make WordPress Core

Changeset 2983 for trunk/xmlrpc.php


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/xmlrpc.php

    r2957 r2983  
    11801180            return new IXR_Error(33, 'The specified target URI cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
    11811181
     1182        if ( $post_ID == url_to_postid($pagelinkedfrom) )
     1183            return new IXR_Error(0, 'The source URI and the target URI cannot both point to the same resource.');
     1184
    11821185        // Check if pings are on
    11831186        if ( 'closed' == $post->ping_status )
Note: See TracChangeset for help on using the changeset viewer.