From 40bf6afc297135c553b03e2787c9336465acb860 Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Thu, 22 Dec 2016 19:41:23 +0200 Subject: [PATCH] fix incorrect inline comments Ref: 01aba1fd2ba832e82f26f107ce6c771d5c5f1846 --- includes/abstracts/abstract-wc-data.php | 2 +- includes/abstracts/abstract-wc-order.php | 2 +- includes/class-wc-checkout.php | 2 +- includes/class-wc-order.php | 2 +- includes/class-wc-product-variable.php | 2 +- includes/class-wc-shipping-zone.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/abstracts/abstract-wc-data.php b/includes/abstracts/abstract-wc-data.php index 4b1348205d3..dfc436bd392 100644 --- a/includes/abstracts/abstract-wc-data.php +++ b/includes/abstracts/abstract-wc-data.php @@ -126,7 +126,7 @@ abstract class WC_Data { */ public function save() { if ( $this->data_store ) { - // Trigger action before saving to the DB. Use a pointer to adjust object props before save. + // Trigger action before saving to the DB. Allows you to adjust object props before save. do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store ); if ( $this->get_id() ) { diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 7f34f30dd29..e2d50a63c8a 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -175,7 +175,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order { */ public function save() { if ( $this->data_store ) { - // Trigger action before saving to the DB. Use a pointer to adjust object props before save. + // Trigger action before saving to the DB. Allows you to adjust object props before save. do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store ); if ( $this->get_id() ) { diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 402c3b2f075..49164ecc692 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -319,7 +319,7 @@ class WC_Checkout { $this->create_order_coupon_lines( $order ); /** - * Action hook to adjust order before save. To change $order, use a pointer (&$order) in your hooked function. + * Action hook to adjust order before save. * @since 2.7.0 */ do_action( 'woocommerce_checkout_create_order', $order, $data ); diff --git a/includes/class-wc-order.php b/includes/class-wc-order.php index 68f05c951f6..90cc1b6137d 100644 --- a/includes/class-wc-order.php +++ b/includes/class-wc-order.php @@ -215,7 +215,7 @@ class WC_Order extends WC_Abstract_Order { public function save() { $this->maybe_set_user_billing_email(); if ( $this->data_store ) { - // Trigger action before saving to the DB. Use a pointer to adjust object props before save. + // Trigger action before saving to the DB. Allows you to adjust object props before save. do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store ); if ( $this->get_id() ) { diff --git a/includes/class-wc-product-variable.php b/includes/class-wc-product-variable.php index 1bae24646bf..8b68f98f278 100644 --- a/includes/class-wc-product-variable.php +++ b/includes/class-wc-product-variable.php @@ -365,7 +365,7 @@ class WC_Product_Variable extends WC_Product { public function save() { $this->validate_props(); if ( $this->data_store ) { - // Trigger action before saving to the DB. Use a pointer to adjust object props before save. + // Trigger action before saving to the DB. Allows you to adjust object props before save. do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store ); if ( $this->get_id() ) { diff --git a/includes/class-wc-shipping-zone.php b/includes/class-wc-shipping-zone.php index c56fc3d297a..2e55dec95d1 100644 --- a/includes/class-wc-shipping-zone.php +++ b/includes/class-wc-shipping-zone.php @@ -248,7 +248,7 @@ class WC_Shipping_Zone extends WC_Legacy_Shipping_Zone { $this->set_zone_name( $this->generate_zone_name() ); } if ( $this->data_store ) { - // Trigger action before saving to the DB. Use a pointer to adjust object props before save. + // Trigger action before saving to the DB. Allows you to adjust object props before save. do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store ); if ( null === $this->get_id() ) {