Opened 20 years ago
Closed 19 years ago
#550 closed defect (bug) (worksforme)
Error with comment status in functions-comments.php with comment status
Reported by: | anonymousbugger | Owned by: | matt |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.2 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
When posting an article without touching any of the default settings (having set default_comments_status and default_ping_status to zero using the checkboxes in the 'Discussion' tab), I'd often get a "Comments (0)" instead of a "Comments Off". This only happened when posting with the default options (simple, nothing touched). It seems what caused this was that the comment_status and ping_status values in the SQL database (wp_posts) were blank (set to the default '0') . In functions_comments.php, it only places a "comments off" value if comment_status and ping_status are set to "closed". To resolve this issue, I went to the options page (class=ALL) and set default_comment_status and default_ping_status to "closed". Again, the issue is in functions-comments.php as it only checks to see if the comment and ping status reads "closed" instead of both closed or zero.
This exists with version 1.5.