#33638 closed defect (bug) (fixed)
Comment template functions should accept full comment object
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Comments | Keywords: | |
| Focuses: | Cc: |
Description
get_comment() will accept object or ID. The comment template functions don't follow suit, so they always return the global $comment - or check the cache, then the db.
In contrast, get_post() returns the global only if nothing is passed.
Change History (17)
Note: See
TracTickets for help on using
tickets.
Seems like maybe we should wait for WP_Comment to add object support to the template function.