|
@@ 2868-2875 (lines=8) @@
|
| 2865 |
|
continue; |
| 2866 |
|
} |
| 2867 |
|
|
| 2868 |
|
if ( 'category' === $queried_taxonomy ) { |
| 2869 |
|
$the_cat = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'category' ); |
| 2870 |
|
if ( $the_cat ) { |
| 2871 |
|
$this->set( 'cat', $the_cat->term_id ); |
| 2872 |
|
$this->set( 'category_name', $the_cat->slug ); |
| 2873 |
|
} |
| 2874 |
|
unset( $the_cat ); |
| 2875 |
|
} |
| 2876 |
|
|
| 2877 |
|
if ( 'post_tag' === $queried_taxonomy ) { |
| 2878 |
|
$the_tag = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'post_tag' ); |
|
@@ 2877-2883 (lines=7) @@
|
| 2874 |
|
unset( $the_cat ); |
| 2875 |
|
} |
| 2876 |
|
|
| 2877 |
|
if ( 'post_tag' === $queried_taxonomy ) { |
| 2878 |
|
$the_tag = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'post_tag' ); |
| 2879 |
|
if ( $the_tag ) { |
| 2880 |
|
$this->set( 'tag_id', $the_tag->term_id ); |
| 2881 |
|
} |
| 2882 |
|
unset( $the_tag ); |
| 2883 |
|
} |
| 2884 |
|
} |
| 2885 |
|
} |
| 2886 |
|
|