[wp-trac] [WordPress Trac] #8058: Please add get_previous_comments_link() and get_next_comments_link() functions.

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 4 11:36:52 GMT 2008


#8058: Please add get_previous_comments_link() and get_next_comments_link()
functions.
-------------------------+--------------------------------------------------
 Reporter:  nkuttler     |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.7      
Component:  General      |     Version:           
 Severity:  minor        |    Keywords:           
-------------------------+--------------------------------------------------
 Why would they be useful? If you enable comment paging it should be
 possible to hide the page browser if there are no next / previous comment
 pages. Current solution


 {{{
 if ( get_query_var('cpage') > 1 || get_query_var('cpage') <
 get_comment_pages_count() ) {
 // comment browser
 }
 }}}

 Something like
 {{{
 if (get_previous_comments_link() || get_next_comments_link() ) {
 //comment browser
 }
 }}}
 would be much nicer for theme developers.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8058>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list