#33638 closed defect (bug) (fixed)
Comment template functions should accept full comment object
| Reported by: | wonderboymusic | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Seems like maybe we should wait for WP_Comment to add object support to the template function.