[wp-trac] [WordPress Trac] #9556: Packaged themes should make use of
comments_open() and pings_open()
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 17 05:06:05 GMT 2009
#9556: Packaged themes should make use of comments_open() and pings_open()
-------------------------+--------------------------------------------------
Reporter: coffee2code | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 2.8
Component: Themes | Version: 2.7.1
Severity: minor | Keywords: has-patch
-------------------------+--------------------------------------------------
Since `comments_open()` and `pings_open()` have been around for awhile,
the packaged themes should make use of them instead of doing something
like `'open' == $post->comment_status`. The latter is exposes too much
internal workings and is not filterable.
The comments.php file for the classic theme makes use of these calls, but
classic/comments-popup.php does not. And for the default theme, neither
comments.php nor comments-popup.php make use of the functions.
The attached patch modifies those three theme files to make use of
`comments_open()` and `pings_open()` where appropriate.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9556>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list