Set the taxonomy property in the WP_Adjacent_Post class. fixes #26937.
git-svn-id: https://develop.svn.wordpress.org/trunk@27296 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9907c09f1b
commit
de824fade1
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue