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
This commit is contained in:
parent
c8f498046f
commit
1995262477
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user