Merge pull request #22677 from nishitlangaliya/issue-22661

fix: default value passed to sorting dropdown
This commit is contained in:
Mike Jolley 2019-02-07 12:09:20 +00:00 committed by GitHub
commit 62c9e81dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(