Opened 7 years ago

Closed 5 years ago

#2605 closed defect (bug) (wontfix)

comments_popup_link() displays Add Comment when comments closed

Reported by: error Owned by: anonymous
Priority: normal Milestone:
Component: Template Version: 2.2.2
Severity: normal Keywords: comments template dev-feedback
Cc:

Description

When comments to a post are closed, but pings are open, comments_popup_link() displays "No Comments". ($zero parameter) It should display "Comments Off" ($none parameter) if no comments/pings exist on the post, or the comment count if comments/pings do exist on the post.

Attachments (1)

no-comments.diff (530 bytes) - added by error 7 years ago.
Display "Comments Off" when comments off but pings open

Download all attachments as: .zip

Change History (8)

error7 years ago

Display "Comments Off" when comments off but pings open

-1

"Comments" in this case means either pings or regular comments. When comments are closed (and no comments have been received) but pings are open, people can still add a comment, either by pingback or trackback. The Trackback URI is typically displayed on the permalink, down by the comment form. If it says "no comments" and is unlinked, Trackback users are unlikely to leave Trackbacks (they won't know they can!)

comment:2   matt6 years ago

  • Resolution set to invalid
  • Status changed from new to closed
  • Milestone 2.1 deleted
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Version changed from 2.0.2 to 2.2.2

I agree with the original ticket. It should display "Comments closed" ($none) if comments are disabled, irrespective of whether pings are enabled. The link goes to the comment section, which will just say "Comments closed" even if pings are enabled. Many responses come as pings rather than trackbacks, so the presence or not of a trackback link is irrelevant - the permalink can always be used. I don't believe people follow a "Leave comment" link to leave a comment via a trackback; rather, a trackback is a consequence or writing a related post.

My application of this tag would be to have it say "Leave a comment" when there are no comments. This becomes nonsense if I can't have it say something different when comments are disabled.

  • Milestone set to 2.5 (future)
  • Keywords dev-feedback added; bg|has-patch bg|dev-feedback removed
  • Milestone 2.6 deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed

-1, agreeing with markjaquith. WordPress is fairly consistent (at least internally) in referring to both traditional comments and track backs as "comments". If you wish to make this clearer to your users then your $zero argument could be set to "No Comments or trackbacks".

Perhaps the included, or the function, should do this by default? Looking at the amount of discussion here it doesn't appear to have bothered many people so I'm closing as wontfix. Please reopen it if you wish me to write a patch.

Note: See TracTickets for help on using tickets.