Opened 16 years ago
Closed 14 years ago
#16965 closed enhancement (worksforme)
Additional documentation for get_comment_meta
| Reported by: | nprasath002 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Inline Docs | Version: | 3.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
the documentation for get_comment_meta in comment.php can be improved.
The metakey and the single value are optional.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The $meta_key is not optional at present with the function as-is. You can however pass a blank string to it to retrieve all meta.
Setting a default on $key would however allow that.
function get_comment_meta($comment_id, $key, $single = false) { return get_metadata('comment', $comment_id, $key, $single); }