From aca692d49a501af9632c5a38f37afd3ed2d2dd09 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Wed, 12 Jun 2019 05:41:29 -0400 Subject: [PATCH] Add `menu_order` as a valid orderby value (https://github.com/woocommerce/woocommerce-blocks/pull/625) --- .../woocommerce-blocks/assets/php/class-wgpb-block-library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/assets/php/class-wgpb-block-library.php b/plugins/woocommerce-blocks/assets/php/class-wgpb-block-library.php index bd802bad7fe..3a286ae2ca0 100644 --- a/plugins/woocommerce-blocks/assets/php/class-wgpb-block-library.php +++ b/plugins/woocommerce-blocks/assets/php/class-wgpb-block-library.php @@ -369,7 +369,7 @@ class WGPB_Block_Library { protected static function get_schema_orderby() { return array( 'type' => 'string', - 'enum' => array( 'date', 'popularity', 'price_asc', 'price_desc', 'rating', 'title' ), + 'enum' => array( 'date', 'popularity', 'price_asc', 'price_desc', 'rating', 'title', 'menu_order' ), 'default' => 'date', ); }