From 94e317f9f8932822789ed5624eb7e2859f59fe2e Mon Sep 17 00:00:00 2001 From: Daniel Morell Date: Wed, 17 Jun 2020 10:49:40 -0500 Subject: [PATCH] Fixed wc_get_order function name The WC_Abstract_Order __construct() method doc block had the wc_get_order() method referred to as get_order(). --- includes/abstracts/abstract-wc-order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 9c0f2618f7e..31fbbc7d7b4 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -87,8 +87,8 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order { /** * Get the order if ID is passed, otherwise the order is new and empty. - * This class should NOT be instantiated, but the get_order function or new WC_Order_Factory. - * should be used. It is possible, but the aforementioned are preferred and are the only. + * This class should NOT be instantiated, but the wc_get_order function or new WC_Order_Factory + * should be used. It is possible, but the aforementioned are preferred and are the only * methods that will be maintained going forward. * * @param int|object|WC_Order $order Order to read.