Ticket #5761 (closed enhancement: fixed)

Opened 5 months ago

Last modified 5 months ago

Make comments_open and pings_open filterable

Reported by: tellyworth Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: has-patch
Cc:

Description

This makes it possible to filter the result of the comments_open and pings_open post status flags. It also changes wp-comments-post.php and wp-trackback.php to call those functions rather than checking $post->comment_status and $post->ping_status directly. This makes it possible for plugins to override and disable comment posting.

Unfortunately many (most?) themes check those flags directly rather than calling comments_open() and pings_open(), so they might incorrectly display a comment form when comments are in fact disabled.

Attachments

comments-open-filter-r6692-3.patch (2.4 kB) - added by tellyworth on 02/04/08 00:25:18.

Change History

02/04/08 00:25:18 changed by tellyworth

  • attachment comments-open-filter-r6692-3.patch added.

02/04/08 20:27:45 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6716]) Add filters to comments_open() and pings_open(). Props tellyworth. fixes #5761