Code Duplication    Length = 7-8 lines in 2 locations

src/wp-includes/class-wp-query.php 2 locations

@@ 2076-2083 (lines=8) @@
2073
					continue;
2074
				}
2075
2076
				if ( 'category' === $queried_taxonomy ) {
2077
					$the_cat = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'category' );
2078
					if ( $the_cat ) {
2079
						$this->set( 'cat', $the_cat->term_id );
2080
						$this->set( 'category_name', $the_cat->slug );
2081
					}
2082
					unset( $the_cat );
2083
				}
2084
2085
				if ( 'post_tag' === $queried_taxonomy ) {
2086
					$the_tag = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'post_tag' );
@@ 2085-2091 (lines=7) @@
2082
					unset( $the_cat );
2083
				}
2084
2085
				if ( 'post_tag' === $queried_taxonomy ) {
2086
					$the_tag = get_term_by( $queried_items['field'], $queried_items['terms'][0], 'post_tag' );
2087
					if ( $the_tag ) {
2088
						$this->set( 'tag_id', $the_tag->term_id );
2089
					}
2090
					unset( $the_tag );
2091
				}
2092
			}
2093
		}
2094