Ticket #6551 (reopened defect)

Opened 1 month ago

Last modified 3 weeks ago

get_adjacent_post doesn't exclude categories

Reported by: filosofo Assigned to: anonymous
Priority: normal Milestone: 2.5.2
Component: General Version: 2.6
Severity: normal Keywords: has-patch, get_adjacent_post, get_previous_post, get_next_post
Cc: filosofo

Description

So get_previous_post and get_next_post both can't exclude categories.

It would be great to get this into the 2.5 branch, since it's such a simple fix.

Attachments

fix_get_adjacent_post.diff (0.5 kB) - added by filosofo on 04/02/08 17:32:53.

Change History

04/02/08 17:32:53 changed by filosofo

  • attachment fix_get_adjacent_post.diff added.

04/02/08 23:21:08 changed by lloydbudd

#4304 marked a dup of this.

04/14/08 17:56:59 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [7667]) Fix category exclusion when getting adjacent posts. Props filosofo. fixes #6551 for trunk

04/14/08 17:57:31 changed by ryan

(In [7668]) Fix category exclusion when getting adjacent posts. Props filosofo. fixes #6551 for 2.5

04/14/08 17:57:45 changed by ryan

  • milestone changed from 2.6 to 2.5.1.

04/18/08 18:51:47 changed by TylerMartin

  • status changed from closed to reopened.
  • resolution deleted.

The fix doesn't completely fix the problem. Even with the fix in place, if the post in the excluded category is also in any other category, the fact that it is in the excluded category is ignored and the post is not excluded from navigation (which is not the behavior of previous WordPress versions).