Merge pull request #18283 from WPprodigy/fix-set-orderby-default

Set default catalog_orderby in customizer
This commit is contained in:
Claudiu Lodromanean 2018-01-02 10:34:18 -08:00 committed by GitHub
commit 6db59dbc91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class WC_Shop_Customizer {
$wp_customize->add_setting(
'woocommerce_default_catalog_orderby',
array(
'default' => '',
'default' => 'menu_order',
'type' => 'option',
'capability' => 'manage_woocommerce',
'sanitize_callback' => array( $this, 'sanitize_default_catalog_orderby' ),