Revert "Merge pull request #8768 from SiR-DanieL/session-delete"

This reverts commit f63c500848, reversing
changes made to 2a31d1fe98.
This commit is contained in:
Mike Jolley 2015-09-16 13:38:28 +01:00
parent 7a3bd70c8b
commit 83838358fe
1 changed files with 4 additions and 13 deletions

View File

@ -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.
*