WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#10826 closed enhancement (fixed)

Filter for paginate_links please?

Reported by: johnjamesjacoby Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9
Component: Template Keywords: has-patch tested commit
Focuses: Cc:
PR Number:

Description

paginate_links() does not appear to have a filter on the $link output.

Attached patch is one proposed solution.

esc_url() is called on each link in the array, but currently no filters occur on those links to allow plugins to adjust those URLs, outside of 'clean_url' which I don't think is really fitting.

Attachments (1)

paginate-links.patch (1.4 KB) - added by johnjamesjacoby 10 years ago.

Download all attachments as: .zip

Change History (6)

#1 @scribu
10 years ago

  • Milestone changed from Unassigned to 3.0

#2 @chrisscott
10 years ago

  • Keywords tested added

Patches cleanly against r13330 and tests OK.

#3 @scribu
10 years ago

  • Keywords commit added

Still applies clean.

#4 @nacin
10 years ago

Let's esc_url() after we apply the filter?

#5 @nacin
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13478]) Add filter to the links in paginate_links(). fixes #10826, props johnjamesjacoby

Note: See TracTickets for help on using tickets.