| @@ -228,12 +228,8 @@ | ||
| 228 | 228 | if ( $global_user_id !== $this->utils( 'options' )->current_user_id() ) { |
| 229 | 229 | $global_user = $this->utils( 'options' )->get( 'user', false, $global_user_id ); |
| 230 | 230 | |
| 231 | 231 | if ( ! empty( $global_user ) ) { |
| 232 | - if ( is_array( $global_user ) ) { | |
| 233 | - unset( $global_user['api_key'] ); | |
| 234 | - } | |
| 235 | - | |
| 236 | 232 | $global_user['meta'] = $this->user_meta(); |
| 237 | 233 | } |
| 238 | 234 | } |
| 239 | 235 | |
| @@ -247,13 +243,8 @@ | ||
| 247 | 243 | |
| 248 | 244 | $_user = ( new static )->utils( 'options' )->get( 'user', null ); |
| 249 | 245 | |
| 250 | 246 | if ( ! is_null( $_user ) ) { |
| 251 | - // Profiles stored before 3.7.1 may still carry the cloud API key. | |
| 252 | - if ( is_array( $_user ) ) { | |
| 253 | - unset( $_user['api_key'] ); | |
| 254 | - } | |
| 255 | - | |
| 256 | 247 | $_user['meta'] = self::get_instance()->user_meta(); |
| 257 | 248 | } |
| 258 | 249 | |
| 259 | 250 | if ( empty( $_user ) ) { |