Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 293-301 (lines=9) @@
290
			// Prevent extra meta query.
291
			$qv['blog_id'] = $blog_id = 0;
292
293
			if ( empty( $this->meta_query->queries ) ) {
294
				$this->meta_query->queries = array( $who_query );
295
			} else {
296
				// Append the cap query to the original queries and reparse the query.
297
				$this->meta_query->queries = array(
298
					'relation' => 'AND',
299
					array( $this->meta_query->queries, $who_query ),
300
				);
301
			}
302
303
			$this->meta_query->parse_query_vars( $this->meta_query->queries );
304
		}
@@ 378-386 (lines=9) @@
375
			// Specify that role queries should be joined with AND.
376
			$role_queries['relation'] = 'AND';
377
378
			if ( empty( $this->meta_query->queries ) ) {
379
				$this->meta_query->queries = $role_queries;
380
			} else {
381
				// Append the cap query to the original queries and reparse the query.
382
				$this->meta_query->queries = array(
383
					'relation' => 'AND',
384
					array( $this->meta_query->queries, $role_queries ),
385
				);
386
			}
387
388
			$this->meta_query->parse_query_vars( $this->meta_query->queries );
389
		}