comment_exists [ WordPress Function ]
comment_exists ( $comment_author, $comment_date )
| Parameters: |
|
| Uses: |
|
| Returns: |
|
| Defined at: |
|
{@internal Missing Short Description}}
Source
<?php
function comment_exists($comment_author, $comment_date) {
global $wpdb;
$comment_author = stripslashes($comment_author);
$comment_date = stripslashes($comment_date);
return $wpdb->get_var( $wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments
WHERE comment_author = %s AND comment_date = %s", $comment_author, $comment_date) );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- comment_exists() WordPress function reference, arguments and ...
Signature. comment_exists( $comment_author, $comment_date ). comment_author: (string) Author of the comment; comment_date: (string) Date of the comment ...
queryposts.com - #20494 (comment_exists function return improper value ...
Hey,. The function comment_exists() return comment_post_ID instead comment_ID. PHPdoc say: @return mixed Comment ID on success. I submit 2 patches, ...
core.trac.wordpress.org - Issue 864 - tortoisegit - Show log crashes when commit with ...
Aug 18, 2011 ... Issue 864: Show log crashes when commit with "encoding" in comment exists. 2 people starred this issue and may be notified of changes.
code.google.com - CommentPagerTest::testCommentPaging | comment.test | Drupal 7 ...
$this->assertTrue($this->commentExists($comments[0]), t('Comment 1 ... $this-> assertFalse($this->commentExists($comments[1]), t('Comment 2 does not ...
api.drupal.org