Revert "Merge pull request #8768 from SiR-DanieL/session-delete"
This reverts commitf63c500848
, reversing changes made to2a31d1fe98
.
This commit is contained in:
parent
7a3bd70c8b
commit
83838358fe
|
@ -55,7 +55,10 @@ abstract class WC_Session {
|
|||
* @param mixed $key
|
||||
*/
|
||||
public function __unset( $key ) {
|
||||
$this->unset( $key );
|
||||
if ( isset( $this->_data[ $key ] ) ) {
|
||||
unset( $this->_data[ $key ] );
|
||||
$this->_dirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -83,18 +86,6 @@ abstract class WC_Session {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a session variable
|
||||
*
|
||||
* @param string $key
|
||||
*/
|
||||
public function unset( $key ) {
|
||||
if ( isset( $this->_data[ $key ] ) ) {
|
||||
unset( $this->_data[ $key ] );
|
||||
$this->_dirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get_customer_id function.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue