Code Duplication    Length = 7-7 lines in 2 locations

includes/wc-update-functions.php 2 locations

@@ 80-86 (lines=7) @@
77
78
function wc_update_200_subcat_display() {
79
	// Update subcat display settings
80
	if ( get_option( 'woocommerce_shop_show_subcategories' ) == 'yes' ) {
81
		if ( get_option( 'woocommerce_hide_products_when_showing_subcategories' ) == 'yes' ) {
82
			update_option( 'woocommerce_shop_page_display', 'subcategories' );
83
		} else {
84
			update_option( 'woocommerce_shop_page_display', 'both' );
85
		}
86
	}
87
88
	if ( get_option( 'woocommerce_show_subcategories' ) == 'yes' ) {
89
		if ( get_option( 'woocommerce_hide_products_when_showing_subcategories' ) == 'yes' ) {
@@ 88-94 (lines=7) @@
85
		}
86
	}
87
88
	if ( get_option( 'woocommerce_show_subcategories' ) == 'yes' ) {
89
		if ( get_option( 'woocommerce_hide_products_when_showing_subcategories' ) == 'yes' ) {
90
			update_option( 'woocommerce_category_archive_display', 'subcategories' );
91
		} else {
92
			update_option( 'woocommerce_category_archive_display', 'both' );
93
		}
94
	}
95
}
96
97
function wc_update_200_taxrates() {