When I call wp_list_comments for a page that has a single comment, the value of $post gets modified. In my test case, $post->ID has a value of 2 before the call; and a value of <empty> after the call.
The topic ‘wp_list_comments for a page changes $post’ is closed to new replies.
(@tetonbabe)
15 years, 10 months ago
When I call wp_list_comments for a page that has a single comment, the value of $post gets modified. In my test case,
$post->IDhas a value of 2 before the call; and a value of <empty> after the call.