[wp-trac] [WordPress Trac] #17807: get_adjacent_post() doesn't work with custom taxonomies

WordPress Trac noreply at wordpress.org
Sun Oct 27 21:39:52 UTC 2013


#17807: get_adjacent_post() doesn't work with custom taxonomies
-------------------------------------+-----------------------------
 Reporter:  avaly                    |       Owner:  nacin
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Future Release
Component:  Taxonomy                 |     Version:  3.1.3
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-refresh  |
-------------------------------------+-----------------------------
Changes (by nacin):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25959"]:
 {{{
 #!CommitTicketReference repository="" revision="25959"
 Add a $taxonomy argument to each of the adjacent post functions.

 Each took an array of category (IDs) when to search. Those can now be term
 IDs and each function now has $taxonomy = 'category' as an optional
 argument.

 Functions affected: get_previous_post(), get_next_post(),
 get_adjacent_post(), get_adjacent_post_rel_link(),
 adjacent_posts_rel_link(), next_post_rel_link(), prev_post_rel_link(),
 get_boundary_post(), get_previous_post_link(), previous_post_link(),
 get_next_post_link(), next_post_link(), get_adjacent_post_link(),
 adjacent_post_link().

 props ethitter.
 finally fixes #17807.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/17807#comment:49>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list