Merge pull request #12680 from franticpsyx/remaining-incorrect-inline-comments

[2.7] Remaining inline comments about pointers
This commit is contained in:
Mike Jolley 2016-12-22 22:37:33 +00:00 committed by GitHub
commit 99527e8013
6 changed files with 6 additions and 6 deletions

View File

@ -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() ) {

View File

@ -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() ) {

View File

@ -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 );

View File

@ -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() ) {

View File

@ -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() ) {

View File

@ -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() ) {