From 40ff0dafbed4739653303ce9ebbe866f67844596 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 10 Feb 2012 22:44:30 +0000 Subject: [PATCH] Allow get_comment_meta() to be called with only a comment ID, something get_metadata() allows. Same functionality as get_user_meta() and get_post_meta(). see #19882. git-svn-id: http://svn.automattic.com/wordpress/trunk@19909 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index dd4179cc2..59059cf19 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -543,7 +543,7 @@ function delete_comment_meta($comment_id, $meta_key, $meta_value = '') { * @return mixed Will be an array if $single is false. Will be value of meta data field if $single * is true. */ -function get_comment_meta($comment_id, $key, $single = false) { +function get_comment_meta($comment_id, $key = '', $single = false) { return get_metadata('comment', $comment_id, $key, $single); }