[wp-trac] [WordPress Trac] #5761: Make comments_open and pings_open
filterable
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 4 00:24:57 GMT 2008
#5761: Make comments_open and pings_open filterable
-------------------------+--------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/5761>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list