Skip to content

Commit

Permalink
Merge pull request #21 from BinaryKitten/feature-default-value
Browse files Browse the repository at this point in the history
Correct accidental mistype of $this->tax_slug
  • Loading branch information
jtsternberg committed May 18, 2017
2 parents 6db405c + bcf1c51 commit aa3156d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class.taxonomy-single-term.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ protected function process_default( $default = array() ) {
if ( is_numeric( $default_item ) ) {
continue;
}
$term = get_term_by( 'slug', $default_item, $this->tax_slug );
$term = get_term_by( 'slug', $default_item, $this->slug );
if ( $term === false ) {
$term = get_term_by( 'name', $default_item, $this->tax_slug );
$term = get_term_by( 'name', $default_item, $this->slug );
}
$default[ $index ] = ( $term instanceof WP_Term ) ? $term->term_id : false;
}
Expand Down

0 comments on commit aa3156d

Please sign in to comment.