[wp-cvs] wordpress xmlrpc.php,1.31,1.32

Matthew Mullenweg saxmatt at users.sourceforge.net
Sun Dec 12 18:27:33 UTC 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10101

Modified Files:
	xmlrpc.php 
Log Message:
Check for dupe trackbacks as well.

Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/xmlrpc.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** xmlrpc.php	8 Dec 2004 02:35:52 -0000	1.31
--- xmlrpc.php	12 Dec 2004 18:27:31 -0000	1.32
***************
*** 1152,1161 ****
  
  		// Let's check that the remote site didn't already pingback this entry
! 		$sql = 'SELECT * FROM '.$wpdb->comments.' 
! 			WHERE comment_post_ID = '.$post_ID.' 
! 				AND comment_author_url = \''.$pagelinkedfrom.'\' 
! 				AND comment_type = \'pingback\'';
! 		$result = $wpdb->get_results($sql);
! //return($sql);
  
  		if ($wpdb->num_rows) {
--- 1152,1156 ----
  
  		// Let's check that the remote site didn't already pingback this entry
! 		$result = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post_ID' AND comment_author_url = '$pagelinkedfrom'");
  
  		if ($wpdb->num_rows) {
***************
*** 1231,1235 ****
  		}
  
- 
  		$comment_post_ID = $post_ID;
  		$comment_author = $title;
--- 1226,1229 ----




More information about the cvs mailing list