[wp-trac] [WordPress Trac] #33638: Comment template functions should accept full comment object
WordPress Trac
noreply at wordpress.org
Mon Aug 31 21:23:47 UTC 2015
#33638: Comment template functions should accept full comment object
----------------------------+-----------------
Reporter: wonderboymusic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------
`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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33638>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list