delete to unset
This commit is contained in:
parent
1017798c6c
commit
6bc17c65c8
|
@ -88,7 +88,7 @@ abstract class WC_Session {
|
|||
*
|
||||
* @param string $key
|
||||
*/
|
||||
public function delete( $key ) {
|
||||
public function unset( $key ) {
|
||||
if ( isset( $this->_data[ $key ] ) ) {
|
||||
unset( $this->_data[ $key ] );
|
||||
$this->_dirty = true;
|
||||
|
|
Loading…
Reference in New Issue