From e6e905919d14b2b9dec269163669f7f01b07e606 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Tue, 2 Apr 2019 08:34:22 -0600 Subject: [PATCH] Fix conditional for hooking the first two milestones action. --- .../includes/notes/class-wc-admin-notes-order-milestones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-order-milestones.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-order-milestones.php index 100b2caa16b..3bb8f30e091 100644 --- a/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-order-milestones.php +++ b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-order-milestones.php @@ -100,7 +100,7 @@ class WC_Admin_Notes_Order_Milestones { add_action( 'wc_admin_installed', array( $this, 'backfill_last_milestone' ) ); - if ( 10 <= $this->get_orders_count() ) { + if ( $this->get_orders_count() <= 10 ) { add_action( 'woocommerce_new_order', array( $this, 'first_two_milestones' ) ); }