From bcf1c5187cff7136a1c3bffd9d3345bc3ed6b484 Mon Sep 17 00:00:00 2001 From: Kathryn Reeve Date: Thu, 18 May 2017 15:44:03 +0100 Subject: [PATCH] Correct accidental mistype of $this->tax_slug --- class.taxonomy-single-term.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class.taxonomy-single-term.php b/class.taxonomy-single-term.php index 283853e..b4a7f46 100644 --- a/class.taxonomy-single-term.php +++ b/class.taxonomy-single-term.php @@ -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; }