From e41374d13d6e09517f4540ce975401d5dc13ec00 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 26 Feb 2014 18:46:14 +0000 Subject: [PATCH] Set the taxonomy property in the WP_Adjacent_Post class. fixes #26937. Built from https://develop.svn.wordpress.org/trunk@27296 git-svn-id: http://core.svn.wordpress.org/trunk@27151 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index d1779694d8..51589ef978 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1262,6 +1262,7 @@ class WP_Adjacent_Post { $this->current_post = get_post( $args['post'] ); $this->excluded_terms = array_map( 'intval', $args['excluded_terms'] ); $this->adjacent = $args['previous'] ? 'previous' : 'next'; + $this->taxonomy = $args['taxonomy']; $this->in_same_term = (bool) $args['in_same_term']; // Return null when either the post or taxonomy doesn't exist.