Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 275-277 (lines=3) @@
272
		}
273
274
		// Orderby
275
		if ( isset( $_GET['orderby'] ) ) {
276
			$link = add_query_arg( 'orderby', wc_clean( $_GET['orderby'] ), $link );
277
		}
278
279
		/**
280
		 * Search Arg.
@@ 293-295 (lines=3) @@
290
		}
291
292
		// Min Rating Arg
293
		if ( isset( $_GET['min_rating'] ) ) {
294
			$link = add_query_arg( 'min_rating', wc_clean( $_GET['min_rating'] ), $link );
295
		}
296
297
		// All current filters
298
		if ( $_chosen_attributes = WC_Query::get_layered_nav_chosen_attributes() ) {

includes/widgets/class-wc-widget-rating-filter.php 1 location

@@ 60-62 (lines=3) @@
57
		}
58
59
		// Orderby
60
		if ( isset( $_GET['orderby'] ) ) {
61
			$link = add_query_arg( 'orderby', wc_clean( $_GET['orderby'] ), $link );
62
		}
63
64
		/**
65
		 * Search Arg.