From 0d2d7cc5a9624ff745d86231dda6efcd14f79aa1 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 16 Dec 2009 22:13:53 +0000 Subject: [PATCH] Fix phpDoc for Comment Meta functions to refer to comments not posts. See #11462 props sirzooro. git-svn-id: https://develop.svn.wordpress.org/trunk@12420 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 4e641862c2..36861f7774 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -371,13 +371,11 @@ function get_comment_count( $post_id = 0 ) { /** * Add meta data field to a comment. * - * Post meta data is called "Custom Fields" on the Administration Panels. - * * @since 2.9 * @uses add_metadata * @link http://codex.wordpress.org/Function_Reference/add_comment_meta * - * @param int $comment_id Post ID. + * @param int $comment_id Comment ID. * @param string $key Metadata name. * @param mixed $value Metadata value. * @param bool $unique Optional, default is false. Whether the same key should not be added. @@ -414,7 +412,7 @@ function delete_comment_meta($comment_id, $meta_key, $meta_value = '') { * @uses get_metadata * @link http://codex.wordpress.org/Function_Reference/get_comment_meta * - * @param int $comment_id Post ID. + * @param int $comment_id Comment ID. * @param string $key The meta key to retrieve. * @param bool $single Whether to return a single value. * @return mixed Will be an array if $single is false. Will be value of meta data field if $single @@ -436,7 +434,7 @@ function get_comment_meta($comment_id, $key, $single = false) { * @uses update_metadata * @link http://codex.wordpress.org/Function_Reference/update_comment_meta * - * @param int $comment_id Post ID. + * @param int $comment_id Comment ID. * @param string $key Metadata key. * @param mixed $value Metadata value. * @param mixed $prev_value Optional. Previous value to check before removing.