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
This commit is contained in:
Andrew Nacin 2014-02-26 18:46:14 +00:00
parent 076077383d
commit e41374d13d
1 changed files with 1 additions and 0 deletions

View File

@ -1262,6 +1262,7 @@ class WP_Adjacent_Post {
$this->current_post = get_post( $args['post'] ); $this->current_post = get_post( $args['post'] );
$this->excluded_terms = array_map( 'intval', $args['excluded_terms'] ); $this->excluded_terms = array_map( 'intval', $args['excluded_terms'] );
$this->adjacent = $args['previous'] ? 'previous' : 'next'; $this->adjacent = $args['previous'] ? 'previous' : 'next';
$this->taxonomy = $args['taxonomy'];
$this->in_same_term = (bool) $args['in_same_term']; $this->in_same_term = (bool) $args['in_same_term'];
// Return null when either the post or taxonomy doesn't exist. // Return null when either the post or taxonomy doesn't exist.