Ticket #6528 (closed defect (bug): duplicate)

Opened 4 years ago

Last modified 4 years ago

get_adjacent_post no longer excluding categories as expected in WP 2.5

Reported by: nonhocapito Owned by: anonymous
Priority: high Milestone: 2.6
Component: General Version: 2.5
Severity: normal Keywords: category, exclusion, link, post, adjacent
Cc:

Description

get_adjacent_post ignores the categories submitted for exclusion via the $excluded_categories variable.

You can reproduce this by fixing a previous_post_link indicating a category to be excluded.

Ad es.

previous_post_link('« %link', '%title', false, '2')

category '2' should be excluded, but it won't be.

Change History

  • Milestone set to 2.6

I searched but didn't find this ticket before creating #6551.

comment:3   ryan4 years ago

  • Status changed from new to closed
  • Resolution set to duplicate
Note: See TracTickets for help on using tickets.