[wp-trac] [WordPress Trac] #18604: New hook for paginate_links() result

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 27 23:22:44 UTC 2012


#18604: New hook for paginate_links() result
------------------------------------+------------------------------
 Reporter:  lightningspirit         |       Owner:  lightningspirit
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Formatting              |     Version:  3.4
 Severity:  major                   |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------
Changes (by lightningspirit):

 * keywords:  has-patch => has-patch dev-feedback
 * version:  3.3 => 3.4
 * severity:  normal => major


Comment:

 This patch adds a new filter hook in paginate_links() function based on
 context passed through the argument of the function call.

 Provides developers the ability to filter the ouptut/result of
 paginate_links() on diferent contextes!

 I've added the context 'media-upload' in the call of media-upload.php
 file. This way developers can hack the pagination to, for example, provide
 a more suitable pagination UI if the Media Library have displayed a lot of
 pages.

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


More information about the wp-trac mailing list