From f69ac18ccd4f769599d5f043b7cd514cf9b888d8 Mon Sep 17 00:00:00 2001 From: nishitlangaliya Date: Thu, 7 Feb 2019 13:26:43 +0530 Subject: [PATCH] fix: default value passed to sorting dropdown --- includes/wc-template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index c61a928bde7..9198ab01d84 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1295,7 +1295,7 @@ if ( ! function_exists( 'woocommerce_catalog_ordering' ) ) { if ( ! wc_get_loop_prop( 'is_paginated' ) || ! woocommerce_products_will_display() ) { 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( 'woocommerce_catalog_orderby', array(