[wp-trac] [WordPress Trac] #13402: wp_list_comments destroys $post for a paged comment

WordPress Trac wp-trac at lists.automattic.com
Sat May 15 13:13:52 UTC 2010


#13402: wp_list_comments destroys $post for a paged comment
--------------------------+-------------------------------------------------
 Reporter:  tetonbabe     |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  2.9.2     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13402>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list