| @@ -334,12 +334,12 @@ | ||
| 334 | 334 | * @param string $email_address User email address |
| 335 | 335 | * @return array Personal data |
| 336 | 336 | */ |
| 337 | 337 | public function user_data_exporter( $email_address ) { |
| 338 | - $email_address = trim( $email_address ); | |
| 339 | - $data_to_export = array(); | |
| 340 | - $user_data_to_export = array(); | |
| 338 | + $email_address = trim( $email_address ); | |
| 341 | 339 | |
| 340 | + $data_to_export = array(); | |
| 341 | + | |
| 342 | 342 | if ( $user = get_user_by( 'email', $email_address ) ) { |
| 343 | 343 | foreach ( $this->model->get_languages_list() as $lang ) { |
| 344 | 344 | if ( $lang->slug !== $this->options['default_lang'] && $value = get_user_meta( $user->ID, 'description_' . $lang->slug, true ) ) { |
| 345 | 345 | $user_data_to_export[] = array( |
| @@ -352,9 +352,9 @@ | ||
| 352 | 352 | |
| 353 | 353 | if ( ! empty( $user_data_to_export ) ) { |
| 354 | 354 | $data_to_export[] = array( |
| 355 | 355 | 'group_id' => 'user', |
| 356 | - 'group_label' => __( 'User', 'polylang' ), | |
| 356 | + 'group_label' => __( 'User' ), | |
| 357 | 357 | 'item_id' => "user-{$user->ID}", |
| 358 | 358 | 'data' => $user_data_to_export, |
| 359 | 359 | ); |
| 360 | 360 | } |