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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 7 13:29:44 UTC 2011


#17807: get_adjacent_post() doesn't work with custom taxonomies
--------------------------+--------------------
 Reporter:  avaly         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Taxonomy      |     Version:  3.1.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by ethitter):

 * cc: ehitter@… (added)
 * keywords:  needs-patch => has-patch


Comment:

 Building on what SergeyBiryukov had started, I cleaned up his usage of
 $wpdb->prepare().

 In get_boundary_post(), I also changed how the get_posts() query arguments
 were built for situations where $excluded_terms was empty string that was
 converted to an array with single key whose value was 0.

 Since get_boundary_post_rel_link() has been deprecated since
 SergeyBiryukov wrote his patch, I left it alone.

 Finally, I cleaned up the functions I modified per the coding standards.

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


More information about the wp-trac mailing list