Changeset 1939

Show
Ignore:
Timestamp:
12/12/04 18:27:31 (4 years ago)
Author:
saxmatt
Message:

Check for dupe trackbacks as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/xmlrpc.php

    r1920 r1939  
    11521152 
    11531153        // Let's check that the remote site didn't already pingback this entry 
    1154         $sql = 'SELECT * FROM '.$wpdb->comments.'  
    1155             WHERE comment_post_ID = '.$post_ID.'  
    1156                 AND comment_author_url = \''.$pagelinkedfrom.'\'  
    1157                 AND comment_type = \'pingback\''; 
    1158         $result = $wpdb->get_results($sql); 
    1159 //return($sql); 
     1154        $result = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post_ID' AND comment_author_url = '$pagelinkedfrom'"); 
    11601155 
    11611156        if ($wpdb->num_rows) { 
     
    12311226        } 
    12321227 
    1233  
    12341228        $comment_post_ID = $post_ID; 
    12351229        $comment_author = $title;