| @@ -159,13 +159,12 @@ | ||
| 159 | 159 | // Delete user logged meta data |
| 160 | 160 | $this->utils('options') |
| 161 | 161 | ->remove('user') |
| 162 | 162 | ->remove('favourites') |
| 163 | - ->remove('reviews') | |
| 164 | 163 | ->remove('cloud_activity') |
| 165 | 164 | ->remove('api_key'); |
| 166 | 165 | |
| 167 | - if( $this->utils('options')->who_am_i() === 'global' ) { | |
| 166 | + if( $this->utils('options')->whoami() === 'global' ) { | |
| 168 | 167 | $this->utils('options')->remove_global_login(); |
| 169 | 168 | } |
| 170 | 169 | |
| 171 | 170 | return new WP_Error( 'invalid_api_key', $message, $_additional_data ); |