Skip to content

Commit

Permalink
Move inline comment into the docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
JPry committed Nov 8, 2017
1 parent cf5bd60 commit 0e43551
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/class-wc-cart.php
Expand Up @@ -124,10 +124,11 @@ public function __construct() {

/**
* When cloning, ensure object properties are handled.
*
* These properties store a reference to the cart, so we use new instead of clone.
*/
public function __clone() {
// These properties store a reference to the cart, so just use new instead of clone.
$this->session = new WC_Cart_Session( $this );
$this->session = new WC_Cart_Session( $this );
$this->fees_api = new WC_Cart_Fees( $this );
}

Expand Down

0 comments on commit 0e43551

Please sign in to comment.