equal
deleted
inserted
replaced
8 |
8 |
9 /** |
9 /** |
10 * Determine if a comment exists based on author and date. |
10 * Determine if a comment exists based on author and date. |
11 * |
11 * |
12 * @since 2.0.0 |
12 * @since 2.0.0 |
13 * @uses $wpdb |
13 * |
|
14 * @global wpdb $wpdb WordPress database abstraction object. |
14 * |
15 * |
15 * @param string $comment_author Author of the comment |
16 * @param string $comment_author Author of the comment |
16 * @param string $comment_date Date of the comment |
17 * @param string $comment_date Date of the comment |
17 * @return mixed Comment post ID on success. |
18 * @return mixed Comment post ID on success. |
18 */ |
19 */ |
108 |
109 |
109 /** |
110 /** |
110 * Get the number of pending comments on a post or posts |
111 * Get the number of pending comments on a post or posts |
111 * |
112 * |
112 * @since 2.3.0 |
113 * @since 2.3.0 |
113 * @uses $wpdb |
114 * |
|
115 * @global wpdb $wpdb WordPress database abstraction object. |
114 * |
116 * |
115 * @param int|array $post_id Either a single Post ID or an array of Post IDs |
117 * @param int|array $post_id Either a single Post ID or an array of Post IDs |
116 * @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs |
118 * @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs |
117 */ |
119 */ |
118 function get_pending_comments_num( $post_id ) { |
120 function get_pending_comments_num( $post_id ) { |