mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
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
This commit is contained in:
parent
396a5b89e8
commit
40ff0dafbe
@ -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