Improve export users
-
Hello,
I’ve been using that plugin for a while and it proves to be very useful and reliable.
I’ve remarked a problem occuring on fields like first_name, last_name,… If their value contains a special character like “&” it is expanded by WP to & (during the process of updating first_name meta – using filter : pre_user_first_name).
When the field is exported back by the WP-MEMBERS it contains the expanded entity rather than the original value.
If you could uses html_entity_decode when getting those meta, it would lead to a cleaner exported file.
I’ve patched your code – user_export.php line 103 (v.3.1.6.3) like below:
$data .= '"' . html_entity_decode(get_user_meta( $user, $meta, true )) . '",';
It seems to make the job – I let you check and decide if it could be added in a next version.
Best regards.
- The topic ‘Improve export users’ is closed to new replies.