[wp-trac] [WordPress Trac] #15516: Candidates for new template functions based on code in Twenty Ten
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 20 06:48:21 UTC 2010
#15516: Candidates for new template functions based on code in Twenty Ten
-------------------------+--------------------------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.1
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Changes (by johnbillion):
* version: => 3.1
Comment:
First up in comments.php we have:
{{{
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) )
}}}
This is used twice and would be ideal as a function named
`comments_paged()` instead, giving us:
{{{
if ( comments_paged() )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15516#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list