Opened 10 years ago
Closed 10 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: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.5 | Priority: | normal |
| Severity: | normal | Version: | 4.4 |
| Component: | Comments | Keywords: | has-patch |
| Focuses: | administration | Cc: |
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.
The third comment (from Moe) has a comment_post_ID of 0