Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 179-181 (lines=3) @@
176
					 * Backward compatibility: Only store the first
177
					 * 'terms' and 'field' found for a given taxonomy.
178
					 */
179
					if ( ! empty( $cleaned_clause['terms'] ) && ! isset( $this->queried_terms[ $taxonomy ]['terms'] ) ) {
180
						$this->queried_terms[ $taxonomy ]['terms'] = $cleaned_clause['terms'];
181
					}
182
183
					if ( ! empty( $cleaned_clause['field'] ) && ! isset( $this->queried_terms[ $taxonomy ]['field'] ) ) {
184
						$this->queried_terms[ $taxonomy ]['field'] = $cleaned_clause['field'];
@@ 183-185 (lines=3) @@
180
						$this->queried_terms[ $taxonomy ]['terms'] = $cleaned_clause['terms'];
181
					}
182
183
					if ( ! empty( $cleaned_clause['field'] ) && ! isset( $this->queried_terms[ $taxonomy ]['field'] ) ) {
184
						$this->queried_terms[ $taxonomy ]['field'] = $cleaned_clause['field'];
185
					}
186
				}
187
188
			// Otherwise, it's a nested query, so we recurse.