[wp-trac] [WordPress Trac] #6999: Improvements to previous_posts_link and next_posts_link

WordPress Trac wp-trac at lists.automattic.com
Mon May 19 20:51:44 GMT 2008


#6999: Improvements to previous_posts_link and next_posts_link
--------------------------+-------------------------------------------------
 Reporter:  JohnLamansky  |       Owner:  anonymous                                                
     Type:  enhancement   |      Status:  new                                                      
 Priority:  normal        |   Milestone:  2.5.2                                                    
Component:  Template      |     Version:  2.5.1                                                    
 Severity:  normal        |    Keywords:  has-patch hook filter previous_posts_link next_posts_link
--------------------------+-------------------------------------------------
 I'm attaching a patch containing some simple enhancements to the
 previous/next posts link functions.

 1. New "get_next_posts" and "get_previous_posts" functions (which are non-
 echo versions of "next_posts" and "previous_posts"). The rationale behind
 this is that a plain URL would probably need to be returned for PHP use
 more often than echo'd.

 2. New "next_posts_link" and "previous_posts_link" filters -- useful for
 adding class, rel, or title attributes to the previous/next post links.

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


More information about the wp-trac mailing list