From 358825f0068aa4d756cbf3308e0c0a9fc5e39090 Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Wed, 20 Nov 2019 06:50:32 -0800 Subject: [PATCH] Added a transient clear when product ordering is changed --- includes/class-wc-ajax.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 3383cc03608..209cd5805ff 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -1792,6 +1792,8 @@ class WC_AJAX { $wpdb->update( $wpdb->posts, array( 'menu_order' => $menu_orders[ $sorting_id ] ), array( 'ID' => $sorting_id ) ); + WC_Post_Data::delete_product_query_transients(); + do_action( 'woocommerce_after_product_ordering', $sorting_id, $menu_orders ); wp_send_json( $menu_orders ); // phpcs:enable