From e7b6c49c7c11a001b59e576bbd560af2e91cd2e8 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Sat, 14 Jun 2014 23:36:20 +0200 Subject: [PATCH] Added comment to indicate that WC_Order shouldn't be directly instantiated --- includes/abstracts/abstract-wc-order.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 04c903bdb1e..55720180b16 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -20,6 +20,9 @@ abstract class WC_Abstract_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 + * methods that will be maintained going forward. * * @access public * @param string $id (default: '')