Merge pull request #22677 from nishitlangaliya/issue-22661
fix: default value passed to sorting dropdown
This commit is contained in:
commit
62c9e81dc9
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue