[wp-trac] [WordPress Trac] #21375: Add Filter for next_posts_link/prev_posts_link label

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 25 14:56:47 UTC 2012


#21375: Add Filter for next_posts_link/prev_posts_link label
-----------------------------+-----------------------------
 Reporter:  MadtownLems      |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  minor            |   Keywords:
-----------------------------+-----------------------------
 There is currently a filter 'next_posts_link_attributes' that allows
 plugins to add/modify classes/rel/etc to the links.  However, the actual
 label that is displayed for the link is not accessible through this.

 I think that the $label variable in function get_next_posts_link should be
 run through a filter to allow it to be modified by plugins.

 For example, a plugin that adds a custom post type of Apple might want
 these links to say Next Apples or Previous Apples, or if a plugin changes
 the ordering of posts, it might want to change 'Earlier' type labels that
 many themes use to better reflect the new ordering system

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


More information about the wp-trac mailing list