wc_dropdown_variation_attribute_options倍增变化

On the theme menu I noticed that there is a doubling of product variations on the product page

a busy cat

I got the original woo code in variable.php

    <?php
        wc_dropdown_variation_attribute_options( array(
            'options'   => $options,
            'attribute' => $attribute_name,
            'product'   => $product,
        ) );
        echo end( $attribute_keys ) === $attribute_name ? wp_kses_post( apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>' ) ) : '';
    ?>