WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7434 closed enhancement (fixed)

New Filters: previous_posts_link_attributes and next_posts_link_attributes

Reported by: JohnLamansky Owned by: westi
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.6
Component: Template Keywords: has-patch hook filter previous_posts_link next_posts_link
Focuses: Cc:

Description

These 2 filters are for adding style/class/rel/title attributes to the previous/next posts links (e.g. "Older posts" and "Newer posts").

Attachments (1)

link-template.php.diff (949 bytes) - added by JohnLamansky 7 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 @westi7 years ago

  • Milestone changed from 2.6.1 to 2.7
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

comment:2 @westi7 years ago

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

(In [8502]) Allow a plugin to add attributes to the next and previous posts links. Fixes #7434 props JohnLamansky.

Note: See TracTickets for help on using tickets.