From 1995262477dd437372d98af2773d842d981a682c Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@19909 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 dd4179cc27..59059cf19d 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); }