From 7d6bf488c95d7e3eae188b7a346f28f8c4967aed Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Wed, 16 Sep 2015 11:34:22 +0200 Subject: [PATCH] using unset also in the magic method --- includes/abstracts/abstract-wc-session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-session.php b/includes/abstracts/abstract-wc-session.php index 5240813c6b0..3c815d8a16d 100644 --- a/includes/abstracts/abstract-wc-session.php +++ b/includes/abstracts/abstract-wc-session.php @@ -55,7 +55,7 @@ abstract class WC_Session { * @param mixed $key */ public function __unset( $key ) { - $this->delete( $key ); + $this->unset( $key ); } /**