WordPress.org

Ready to get started?Download WordPress

Forums

get_comment_reply_link in comment-template shouldn't it get the post id from the (4 posts)

  1. juggledad
    Member
    Posted 4 years ago #

    I've been tracking down an issue with comments. In the Atahualpa theme, you can have comments on pages, but it only allows a reply on the first comment.

    Digging my way thru the code, I came to function get_comment_reply_link and there are two lines that I wonder about they are right after the 'extract($args, EXTR_SKIP);' and are:
    $comment = get_comment($comment);
    $post = get_post($post);
    now it seems to me that the second line should be
    $post = get_post($comment->comment_post_ID);
    i.e. grab the post from the post pointed to by the comment.

    Am I missing something? (p.s. this fixes my issue and allows all page comments to be replied to.

  2. juggledad
    Member
    Posted 4 years ago #

    bump - anyone got a comment?

  3. rappscallion
    Member
    Posted 4 years ago #

    I had this problem, I have Atahualpa 3.4.5 and WordPress 2.9.1. I applied the fix above.

    I can now see a reply link next to all comments down the list of comments.

    Thanks!

  4. juggledad
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic