[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:54:15 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:                 
-------------------------+--------------------------------------------------

Comment(by johnbillion):

 In loop.php we have:

 {{{
 if ( $wp_query->max_num_pages > 1 )
 }}}

 It's not nice using the $wp_query object directly so let's put it in a
 function. `posts_paged()` would keep it consistent with `comments_paged()`
 suggested above.

 {{{
 if ( posts_paged() )
 }}}
 Much nicer.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15516#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list