Code Duplication    Length = 3-3 lines in 2 locations

includes/widgets/class-wc-widget-layered-nav.php 2 locations

@@ 290-292 (lines=3) @@
287
		}
288
289
		// Orderby
290
		if ( isset( $_GET['orderby'] ) ) {
291
			$link = add_query_arg( 'orderby', wc_clean( $_GET['orderby'] ), $link );
292
		}
293
294
		// Search Arg
295
		if ( get_search_query() ) {
@@ 300-302 (lines=3) @@
297
		}
298
299
		// Post Type Arg
300
		if ( isset( $_GET['post_type'] ) ) {
301
			$link = add_query_arg( 'post_type', wc_clean( $_GET['post_type'] ), $link );
302
		}
303
304
		return $link;
305
	}