Opened 11 years ago
Closed 11 years ago
#35506 closed defect (bug) (fixed)
The global `$post` object for rows in the comments list table is polluted if `comment_post_ID` = 0
| Reported by: | rachelbaker | Owned by: | rachelbaker |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Comments | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | administration |
Description
In WP_Comments_List_Table->single_row() the global $post object is only set for each row if comment_post_ID > 0. In the column_response method the $post global is used to display the information about the related Post for each comment. If the comment_post_ID is 0 then this column displays the related Post information from the previous row that could return a valid Post object from the comment_post_ID.
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)
The third comment (from Moe) has a comment_post_ID of 0