Ticket #3159 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Generic page links generating function

Reported by: mdawaffe Assigned to: mdawaffe
Priority: low Milestone: 2.1
Component: Template Version: 2.1
Severity: normal Keywords: pagination has-patch 2nd-opinion
Cc:

Description

This has been talked about an hackers a couple times and on at least one bug hunt.

Attached: paginate_links()

  1. 'base' => base link with %_% to be replaced by:
  2. 'format' => format of replacement with %#% to be replaced by page number.
  3. 'total' => total # of pages.
  4. 'current' => current page.
  5. 'show_all' => show all links or just the first, last and those near current?
  6. 'prev_next' => show previous and next links?
  7. 'prev_text' =>, 'next_text' => text for previous and next links.
  8. 'end_size' => how many links to show at the beginning of the range.
  9. 'mid_size' => how many links to show on either side of the current page.
  10. 'type' => 'array', 'list', 'plain'.
  11. 'add_args' => array of args to add with add_query_arg()

Modifies WP_User_Search to use this function. See #2793.

Attachments

3159.diff (4.4 kB) - added by mdawaffe on 09/22/06 18:03:14.
3159b.diff (4.4 kB) - added by mdawaffe on 09/28/06 22:25:34.
update

Change History

09/22/06 18:03:14 changed by mdawaffe

  • attachment 3159.diff added.

09/22/06 18:07:36 changed by mdawaffe

masquerade, thoughts?

09/28/06 22:25:34 changed by mdawaffe

  • attachment 3159b.diff added.

update

09/28/06 22:26:30 changed by mdawaffe

  • keywords changed from pagination to pagination has-patch 2nd-opinion.
  • status changed from new to assigned.

3159b.diff

  1. update patch to @4261

10/03/06 07:16:51 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [4275]) paginate_links() from mdawaffe. fixes #3159