Opened 4 years ago

Closed 3 years ago

#10826 closed enhancement (fixed)

Filter for paginate_links please?

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

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 4 years ago.

Download all attachments as: .zip

Change History (6)

  • Milestone changed from Unassigned to 3.0
  • Keywords tested added

Patches cleanly against r13330 and tests OK.

  • Keywords commit added

Still applies clean.

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

  • 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.