Make WordPress Core

Changeset 19909


Ignore:
Timestamp:
02/10/2012 10:44:30 PM (13 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r19751 r19909  
    544544 *  is true.
    545545 */
    546 function get_comment_meta($comment_id, $key, $single = false) {
     546function get_comment_meta($comment_id, $key = '', $single = false) {
    547547    return get_metadata('comment', $comment_id, $key, $single);
    548548}
Note: See TracChangeset for help on using the changeset viewer.