[wp-hackers] paged comments problem

Stephen Rider wp-hackers at striderweb.com
Mon Dec 15 21:42:08 GMT 2008

Thanks -- I'll check it out.  I figured it was some change in a  
different file, but didn't know how to find it easily.

I'll do a diff of the 2 header.php files and update around my changes.


On Dec 15, 2008, at 2:49 PM, Alex Hempton-Smith wrote:

> Did you also replace your header.php file?
> A new piece of code was added for the comments system to work; just  
> add this
> just before </head>:
> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
> <?php wp_head(); ?>
> wp_head will already be there, but the comment-reply Javascript is  
> new.
> Unless you've modified it, I would just replace the whole header.php  
> file,
> other fixes have been made since 2.5.
> On Mon, Dec 15, 2008 at 7:04 PM, Stephen Rider <wp-hackers at striderweb.com 
> >wrote:
>> I use a theme that is a mildly modified version of the Default theme
>> (probably the 2.5 Default theme).  i want to update so I'm using  
>> the new WP
>> 2.7 paged comments, so I replaced my old comments.php with the one  
>> from the
>> new 2.7 Default theme.  Should be good, right?  Wrong.
>> On my test server I have a post with 11 comments (one of which is a
>> threaded reply to another).  I set the Options to break comments at  
>> every
>> 10.  The comments all show on one page.  Okay.
>> Now I add a comment.  The page reloads and I see no comments, but I  
>> see the
>> "older comments" navigation link.  When I look at the address bar,  
>> I see
>> that I'm on comment-page 11 !  Oooops!  If I navigate to the post  
>> page sans
>> "comment-page" bit, comments show as expected -- paged and all.
>> Am I doing something wrong, or is this a bug?  Again, there are minor
>> changes to the overall theme (the header is modified graphically,  
>> etc.), but
>> this is the exact comments.php from WP 2.7 Default theme.

More information about the wp-hackers mailing list