Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#8233 closed defect (bug) (invalid)

comment_reply_link prints a link even when comments are closed

Reported by: ionfish Owned by:
Priority: normal Milestone:
Component: Comments Version: 2.7
Severity: minor Keywords:
Cc: Focuses:

Description

comment_reply_link shouldn't be printing a reply link when comments for that post are closed.

Attachments (1)

8233.diff (568 bytes ) - added by ionfish 18 years ago.

Download all attachments as: .zip

Change History (6)

@ionfish
18 years ago

#1 in reply to: ↑ description @azaozz
18 years ago

  • Severity normalminor

Replying to ionfish:

comment_reply_link shouldn't be printing a reply link when comments for that post are closed.

And the template should not be calling comment_reply_link() either...

#2 @ionfish
18 years ago

It's called in Walker_Comment, and wp_list_comments() lets theme authors pass in a different class anyway.

#3 @azaozz
18 years ago

get_comment_reply_link() that's echoed from comment_reply_link() returns false when comments are closed, so if there's something returned, the problem is probably somewhere else.

#4 @ionfish
18 years ago

  • Resolutioninvalid
  • Status newclosed

Can't seem to reproduce this issue now. Thanks for your patience Andrew.

#5 @ionfish
18 years ago

  • Milestone 2.7
Note: See TracTickets for help on using tickets.