WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6528 closed defect (bug) (duplicate)

get_adjacent_post no longer excluding categories as expected in WP 2.5

Reported by: nonhocapito Owned by:
Milestone: 2.6 Priority: high
Severity: normal Version: 2.5
Component: General Keywords: category, exclusion, link, post, adjacent
Focuses: 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 (3)

comment:1 lloydbudd6 years ago

  • Milestone set to 2.6

comment:2 filosofo6 years ago

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

comment:3 ryan6 years ago

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