[wp-trac] [WordPress Trac] #9557: comment-template.php and
xmlrpc.php should make use of comments_open()
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 17 06:22:50 GMT 2009
#9557: comment-template.php and xmlrpc.php should make use of comments_open()
-------------------------+--------------------------------------------------
Reporter: coffee2code | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.8
Component: General | Version: 2.7.1
Severity: minor | Keywords: has-patch
-------------------------+--------------------------------------------------
`comments_popup_link()` in wp-includes/comment-template.php uses the old-
style check:
`'closed' == $post->comment_status && 'closed' == $post->ping_status`
rather than the modern:
`!comments_open() && !pings_open()`
`get_comment_reply_link()` also uses the old-style check for
comment_status.
xmlrpc.php also has a place where the old-style check for comment_status
and ping_status should instead be `comments_open()` and `pings_open()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9557>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list