Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2327 closed defect (bug) (fixed)

Process previous/next post navigation with category exclusions

Reported by: coppit's profile coppit Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Template Keywords: categories post navigation
Focuses: Cc:

Description

There should be a call to the list_cats_exclusions filter from within get_next_post and get_previous_post, similar to the way it's already done in list_cats.

This way plugin authors can hook list_cats_exclusions and modify the accessible posts in both the category list and the navigational post links.

For example, my Category Access plugin hides posts in particular categories. Without the requested hook, my plugin can't avoid the next post pointing to a post that should be hidden from the user.

Change History (2)

#1 @matt
19 years ago

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

Fixed this earlier.

#2 @stewartjohnson
18 years ago

This isn't actually fixed, see the bug I just opened: #4304

Note: See TracTickets for help on using tickets.