Skip to content

Commit

Permalink
Correct accidental mistype of $this->tax_slug
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryKitten authored May 18, 2017
1 parent 5e61585 commit bcf1c51
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 @@ -164,9 +164,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 bcf1c51

Please sign in to comment.