Opened 17 years ago
Closed 17 years ago
#12006 closed defect (bug) (fixed)
Comment template functions should accept optional comment ID argument.
| Reported by: | filosofo | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Comments | Version: | 3.0 |
| Severity: | normal | Keywords: | comments has-patch |
| Cc: | Focuses: |
Description
Otherwise, to get basic comment info you have to define, populate, and reset afterwards a global $comment variable, which is unnecessarily messy.
Patch adds a comment ID variable where helpful and backwards-compatibility safe.
Attachments (2)
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)
Since get_comment() returns the global comment if passed on empty ID, can we lose the empty() ternaries?