fix incorrect inline comments

Ref: 01aba1fd2b
This commit is contained in:
Manos Psychogyiopoulos 2016-12-22 19:41:23 +02:00
parent 01aba1fd2b
commit 40bf6afc29
6 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ abstract class WC_Data {
*/ */
public function save() { public function save() {
if ( $this->data_store ) { 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 ); do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
if ( $this->get_id() ) { if ( $this->get_id() ) {

View File

@ -175,7 +175,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
*/ */
public function save() { public function save() {
if ( $this->data_store ) { 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 ); do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
if ( $this->get_id() ) { if ( $this->get_id() ) {

View File

@ -319,7 +319,7 @@ class WC_Checkout {
$this->create_order_coupon_lines( $order ); $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 * @since 2.7.0
*/ */
do_action( 'woocommerce_checkout_create_order', $order, $data ); do_action( 'woocommerce_checkout_create_order', $order, $data );

View File

@ -215,7 +215,7 @@ class WC_Order extends WC_Abstract_Order {
public function save() { public function save() {
$this->maybe_set_user_billing_email(); $this->maybe_set_user_billing_email();
if ( $this->data_store ) { 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 ); do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
if ( $this->get_id() ) { if ( $this->get_id() ) {

View File

@ -365,7 +365,7 @@ class WC_Product_Variable extends WC_Product {
public function save() { public function save() {
$this->validate_props(); $this->validate_props();
if ( $this->data_store ) { 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 ); do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
if ( $this->get_id() ) { if ( $this->get_id() ) {

View File

@ -248,7 +248,7 @@ class WC_Shipping_Zone extends WC_Legacy_Shipping_Zone {
$this->set_zone_name( $this->generate_zone_name() ); $this->set_zone_name( $this->generate_zone_name() );
} }
if ( $this->data_store ) { 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 ); do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
if ( null === $this->get_id() ) { if ( null === $this->get_id() ) {