Opened 15 years ago
Closed 15 years ago
#13402 closed defect (bug) (worksforme)
wp_list_comments destroys $post for a paged comment
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.9.2 |
Component: | General | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
If a page has a comment and I call:
echo 'before post = ' . $post->ID;
wp_list_comments(...);
echo 'after post = ' . $post->ID;
The ID appears as 2 before the call to wp_list_comments, and as the empty string after the call.
This can be duplicated in the Atahualpa Theme 3.4.6, by editing comments.php as described above for the 3rd (and last) call to wp_list_comments, and configuring Atahualpa Theme Options -> Style and Configure Comments -> Allow comments on pages. Then add a comment to the About page.
Change History (4)
Note: See
TracTickets for help on using
tickets.
I could not reproduce this using the TwentyTen theme. Could you please use the TwentyTen theme and tell me if you can reproduce. There's a good chance this is the theme's fault.