From fef41c149c944e0bd1a429774bdbf78907c15754 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 15 Jan 2015 14:50:37 +0000 Subject: [PATCH] @uses WP_POST --- includes/abstracts/abstract-wc-order.php | 1 + includes/abstracts/abstract-wc-product.php | 1 + includes/class-wc-order-refund.php | 1 + includes/class-wc-product-factory.php | 1 + 4 files changed, 4 insertions(+) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 7e5b4afbc39..9f7955b0df2 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -53,6 +53,7 @@ abstract class WC_Abstract_Order { * Init/load the order object. Called from the constructor. * * @param string|int|WP_POST|WC_Order $order Order to init + * @uses WP_POST */ protected function init( $order ) { if ( is_numeric( $order ) ) { diff --git a/includes/abstracts/abstract-wc-product.php b/includes/abstracts/abstract-wc-product.php index eab94726f91..79897ab056d 100644 --- a/includes/abstracts/abstract-wc-product.php +++ b/includes/abstracts/abstract-wc-product.php @@ -25,6 +25,7 @@ class WC_Product { * Constructor gets the post object and sets the ID for the loaded product. * * @param int|WC_Product|WP_Post $product Product ID, post object, or product object + * @uses WP_POST */ public function __construct( $product ) { diff --git a/includes/class-wc-order-refund.php b/includes/class-wc-order-refund.php index c0931d14ffa..10c1cee2f14 100644 --- a/includes/class-wc-order-refund.php +++ b/includes/class-wc-order-refund.php @@ -17,6 +17,7 @@ class WC_Order_Refund extends WC_Abstract_Order { * Init/load the refund object. Called from the contructor. * * @param string|int|WP_Post|WC_Order_Refund $refund Refund to init + * @uses WP_POST */ protected function init( $refund ) { if ( is_numeric( $refund ) ) { diff --git a/includes/class-wc-product-factory.php b/includes/class-wc-product-factory.php index b36f86a3009..91d51da54b3 100644 --- a/includes/class-wc-product-factory.php +++ b/includes/class-wc-product-factory.php @@ -75,6 +75,7 @@ class WC_Product_Factory { /** * Get the product object * @param mixed $the_product + * @uses WP_POST * @return WP_Post|bool false on failure */ private function get_product_object( $the_product ) {