Changeset 7645 for trunk/wp-trackback.php
- Timestamp:
- 04/14/2008 04:13:25 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-trackback.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r7559 r7645 87 87 $comment_type = 'trackback'; 88 88 89 $dupe = $wpdb->get_results( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_author_url = '$comment_author_url'");89 $dupe = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_author_url = %s", $comment_post_ID, $comment_author_url) ); 90 90 if ( $dupe ) 91 91 trackback_response(1, 'We already have a ping from that URL for this post.');
Note: See TracChangeset
for help on using the changeset viewer.