~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/comment.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:04:26 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: nick.moffitt@canonical.com-20150115110426-5stm1p14cfnxrtme
New Upstream Version 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * Determine if a comment exists based on author and date.
11
11
 *
12
12
 * @since 2.0.0
13
 
 * @uses $wpdb
 
13
 *
 
14
 * @global wpdb $wpdb WordPress database abstraction object.
14
15
 *
15
16
 * @param string $comment_author Author of the comment
16
17
 * @param string $comment_date Date of the comment
110
111
 * Get the number of pending comments on a post or posts
111
112
 *
112
113
 * @since 2.3.0
113
 
 * @uses $wpdb
 
114
 *
 
115
 * @global wpdb $wpdb WordPress database abstraction object.
114
116
 *
115
117
 * @param int|array $post_id Either a single Post ID or an array of Post IDs
116
118
 * @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs