### Eclipse Workspace Patch 1.0
#P WP.org WordPress Trunk
|
|
|
|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | | * {@internal Missing Short Description}} |
| | 10 | * Determine if a comment exists based on author and date |
| 11 | 11 | * |
| 12 | 12 | * @since 2.0.0 |
| 13 | 13 | * @uses $wpdb |
| … |
… |
|
| 22 | 22 | $comment_author = stripslashes($comment_author); |
| 23 | 23 | $comment_date = stripslashes($comment_date); |
| 24 | 24 | |
| 25 | | return $wpdb->get_var( $wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments |
| | 25 | return $wpdb->get_var( $wpdb->prepare("SELECT comment_ID FROM $wpdb->comments |
| 26 | 26 | WHERE comment_author = %s AND comment_date = %s", $comment_author, $comment_date) ); |
| 27 | 27 | } |
| 28 | 28 | |