#1444 closed defect (bug) (wontfix)
comment-functions.php logic for comments_popup_link
| Reported by: | emmajane | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.5.1.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
On line 101 the logic is:
if (0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status) {
Which says that comments and pings must be closed, and the number of posts must be zero to give a "comments off" notification. This doesn't make sense to me. I'd rather have it, "if the comments are set to 'closed'" then show "comments off."
if ((0 == $number && 'closed' == $post->comment_status) 'closed' == $post->ping_status) {
I'm not sure if this is a feature request, or a bug though.
thanks,
emma
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I think it's like that because you can have comments open, people can leave comments, and then you can close the comments. In that case you will have a non-zero number of comments even though the comments are closed and you'll therefore want comments_popup_link() to display "% comments" (or whatever).