Code Duplication    Length = 7-8 lines in 2 locations

wp-includes/query.php 2 locations

@@ 2886-2893 (lines=8) @@
2883
					continue;
2884
				}
2885
2886
				if ( 'category' === $queried_taxonomy ) {
2887
					$the_cat = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'category' );
2888
					if ( $the_cat ) {
2889
						$this->set( 'cat', $the_cat->term_id );
2890
						$this->set( 'category_name', $the_cat->slug );
2891
					}
2892
					unset( $the_cat );
2893
				}
2894
2895
				if ( 'post_tag' === $queried_taxonomy ) {
2896
					$the_tag = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'post_tag' );
@@ 2895-2901 (lines=7) @@
2892
					unset( $the_cat );
2893
				}
2894
2895
				if ( 'post_tag' === $queried_taxonomy ) {
2896
					$the_tag = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'post_tag' );
2897
					if ( $the_tag ) {
2898
						$this->set( 'tag_id', $the_tag->term_id );
2899
					}
2900
					unset( $the_tag );
2901
				}
2902
			}
2903
		}
2904