| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * Setup filters common to admin and frontend |
| 8 | 5 | * |
| @@ -337,12 +334,12 @@ | ||
| 337 | 334 | * @param string $email_address User email address |
| 338 | 335 | * @return array Personal data |
| 339 | 336 | */ |
| 340 | 337 | public function user_data_exporter( $email_address ) { |
| 341 | - $email_address = trim( $email_address ); | |
| 342 | - $data_to_export = array(); | |
| 343 | - $user_data_to_export = array(); | |
| 338 | + $email_address = trim( $email_address ); | |
| 344 | 339 | |
| 340 | + $data_to_export = array(); | |
| 341 | + | |
| 345 | 342 | if ( $user = get_user_by( 'email', $email_address ) ) { |
| 346 | 343 | foreach ( $this->model->get_languages_list() as $lang ) { |
| 347 | 344 | if ( $lang->slug !== $this->options['default_lang'] && $value = get_user_meta( $user->ID, 'description_' . $lang->slug, true ) ) { |
| 348 | 345 | $user_data_to_export[] = array( |
| @@ -355,9 +352,9 @@ | ||
| 355 | 352 | |
| 356 | 353 | if ( ! empty( $user_data_to_export ) ) { |
| 357 | 354 | $data_to_export[] = array( |
| 358 | 355 | 'group_id' => 'user', |
| 359 | - 'group_label' => __( 'User', 'polylang' ), | |
| 356 | + 'group_label' => __( 'User' ), | |
| 360 | 357 | 'item_id' => "user-{$user->ID}", |
| 361 | 358 | 'data' => $user_data_to_export, |
| 362 | 359 | ); |
| 363 | 360 | } |