Code Duplication    Length = 2-2 lines in 3 locations

wp-includes/query.php 3 locations

@@ 4973-4974 (lines=2) @@
4970
4971
		// if year, monthnum, or day have been specified, make our query more precise
4972
		// just in case there are multiple identical _wp_old_slug values
4973
		if ( '' != $wp_query->query_vars['year'] )
4974
			$query .= $wpdb->prepare(" AND YEAR(post_date) = %d", $wp_query->query_vars['year']);
4975
		if ( '' != $wp_query->query_vars['monthnum'] )
4976
			$query .= $wpdb->prepare(" AND MONTH(post_date) = %d", $wp_query->query_vars['monthnum']);
4977
		if ( '' != $wp_query->query_vars['day'] )
@@ 4975-4976 (lines=2) @@
4972
		// just in case there are multiple identical _wp_old_slug values
4973
		if ( '' != $wp_query->query_vars['year'] )
4974
			$query .= $wpdb->prepare(" AND YEAR(post_date) = %d", $wp_query->query_vars['year']);
4975
		if ( '' != $wp_query->query_vars['monthnum'] )
4976
			$query .= $wpdb->prepare(" AND MONTH(post_date) = %d", $wp_query->query_vars['monthnum']);
4977
		if ( '' != $wp_query->query_vars['day'] )
4978
			$query .= $wpdb->prepare(" AND DAYOFMONTH(post_date) = %d", $wp_query->query_vars['day']);
4979
@@ 4977-4978 (lines=2) @@
4974
			$query .= $wpdb->prepare(" AND YEAR(post_date) = %d", $wp_query->query_vars['year']);
4975
		if ( '' != $wp_query->query_vars['monthnum'] )
4976
			$query .= $wpdb->prepare(" AND MONTH(post_date) = %d", $wp_query->query_vars['monthnum']);
4977
		if ( '' != $wp_query->query_vars['day'] )
4978
			$query .= $wpdb->prepare(" AND DAYOFMONTH(post_date) = %d", $wp_query->query_vars['day']);
4979
4980
		$id = (int) $wpdb->get_var($query);
4981