fix: default value passed to sorting dropdown

This commit is contained in:
nishitlangaliya 2019-02-07 13:26:43 +05:30
parent 2d2d7a7053
commit f69ac18ccd
1 changed files with 1 additions and 1 deletions

View File

@ -1295,7 +1295,7 @@ if ( ! function_exists( 'woocommerce_catalog_ordering' ) ) {
if ( ! wc_get_loop_prop( 'is_paginated' ) || ! woocommerce_products_will_display() ) { if ( ! wc_get_loop_prop( 'is_paginated' ) || ! woocommerce_products_will_display() ) {
return; return;
} }
$show_default_orderby = 'menu_order' === apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); $show_default_orderby = 'menu_order' === apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby', 'menu_order' ) );
$catalog_orderby_options = apply_filters( $catalog_orderby_options = apply_filters(
'woocommerce_catalog_orderby', 'woocommerce_catalog_orderby',
array( array(