Export User Data - Version 0.9.5

Version Description

  • BP Serialized data fixes - thanks to @nicmare & @grexican
  • Tested on WP 3.9.2 & BP 2.0.2
Download this release

Release Info

Developer qlstudio
Plugin Icon wp plugin Export User Data
Version 0.9.5
Comparing to
See all releases

Code changes from version 0.9.4 to 0.9.5

Files changed (3) hide show
  1. export-user-data.php +11 -6
  2. readme.md +10 -3
  3. readme.txt +6 -2
export-user-data.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Export User Data
5
  Plugin URI: http://qstudio.us/plugins/
6
  Description: Export User data, metadata and BuddyPressX Profile data.
7
- Version: 0.9.4
8
  Author: Q Studio
9
  Author URI: http://qstudio.us
10
  License: GPL2
@@ -19,7 +19,7 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
19
  {
20
 
21
  // plugin version
22
- define( 'Q_EXPORT_USER_DATA_VERSION', '0.9.4' ); // version ##
23
 
24
  // instatiate class via hook, only if inside admin
25
  if ( is_admin() ) {
@@ -517,10 +517,14 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
517
  if ( isset( $bp_data ) && isset( $bp_data[$field] ) && in_array( $field, $bp_fields_passed ) ) {
518
 
519
  $value = $bp_data[$field];
520
-
521
  if ( is_array( $value ) ) {
522
- $value = $value['field_data'];
 
 
 
523
  }
 
524
  $value = $this->sanitize($value);
525
 
526
  // check if this is a BP field we want the updated date for ##
@@ -542,8 +546,9 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
542
  } else {
543
 
544
  $value = isset( $user->{$field} ) ? $user->{$field} : '';
545
- $value = is_array( $value ) ? serialize( $value ) : $value; // maybe serialize the value ##
546
-
 
547
  }
548
 
549
  // correct program value to Program Name ##
4
  Plugin Name: Export User Data
5
  Plugin URI: http://qstudio.us/plugins/
6
  Description: Export User data, metadata and BuddyPressX Profile data.
7
+ Version: 0.9.5
8
  Author: Q Studio
9
  Author URI: http://qstudio.us
10
  License: GPL2
19
  {
20
 
21
  // plugin version
22
+ define( 'Q_EXPORT_USER_DATA_VERSION', '0.9.5' ); // version ##
23
 
24
  // instatiate class via hook, only if inside admin
25
  if ( is_admin() ) {
517
  if ( isset( $bp_data ) && isset( $bp_data[$field] ) && in_array( $field, $bp_fields_passed ) ) {
518
 
519
  $value = $bp_data[$field];
520
+
521
  if ( is_array( $value ) ) {
522
+
523
+ $value = maybe_unserialize($value['field_data']); // suggested by @grexican ##
524
+ #$value = $value['field_data'];
525
+
526
  }
527
+
528
  $value = $this->sanitize($value);
529
 
530
  // check if this is a BP field we want the updated date for ##
546
  } else {
547
 
548
  $value = isset( $user->{$field} ) ? $user->{$field} : '';
549
+ #$value = is_array( $value ) ? serialize( $value ) : $value; // maybe serialize the value ##
550
+ $value = is_array( $value ) ? implode(", ", $value ) : $value; // maybe serialize the value - suggested by @nicmare ##
551
+
552
  }
553
 
554
  // correct program value to Program Name ##
readme.md CHANGED
@@ -2,8 +2,8 @@
2
  **Contributors:** qlstudio
3
  **Tags:** user, users, xprofile, usermeta csv, excel, batch, export, save, download
4
  **Requires at least:** 3.2
5
- **Tested up to:** 3.9.0
6
- **Stable tag:** 0.9.3
7
  **License:** GPLv2
8
 
9
  Export users data, metadata and buddypress xprofile data to a csv or Excel file
@@ -54,11 +54,18 @@ Click on the 'Export User Data' link in the 'Users' menu, choose the role and th
54
 
55
  ## Screenshots ##
56
 
57
- ###1. User export screen###
58
  ![ScreenShot](http://s.w.org/plugins/export-user-data/screenshot-1.png?r=859689)
59
 
60
  ## Changelog ##
61
 
 
 
 
 
 
 
 
62
  ### 0.9.3 ###
63
  * fix for hidden admin bar
64
 
2
  **Contributors:** qlstudio
3
  **Tags:** user, users, xprofile, usermeta csv, excel, batch, export, save, download
4
  **Requires at least:** 3.2
5
+ **Tested up to:** 3.9.2
6
+ **Stable tag:** 0.9.5
7
  **License:** GPLv2
8
 
9
  Export users data, metadata and buddypress xprofile data to a csv or Excel file
54
 
55
  ## Screenshots ##
56
 
57
+ ### 1. User export screen ###
58
  ![ScreenShot](http://s.w.org/plugins/export-user-data/screenshot-1.png?r=859689)
59
 
60
  ## Changelog ##
61
 
62
+ ### 0.9.5 ###
63
+ * BP Serialized data fixes - thanks to @nicmare & @grexican
64
+ * Tested on WP 3.9.2 & BP 2.0.2
65
+
66
+ ### 0.9.4 ###
67
+ * BP X Profile Export Fix ( > version 2.0 )
68
+
69
  ### 0.9.3 ###
70
  * fix for hidden admin bar
71
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: qlstudio
3
  Tags: user, users, xprofile, usermeta csv, excel, batch, export, save, download
4
  Requires at least: 3.2
5
- Tested up to: 3.9.0
6
- Stable tag: 0.9.4
7
  License: GPLv2
8
 
9
  Export users data, metadata and buddypress xprofile data to a csv or Excel file
@@ -58,6 +58,10 @@ Click on the 'Export User Data' link in the 'Users' menu, choose the role and th
58
 
59
  == Changelog ==
60
 
 
 
 
 
61
  = 0.9.4 =
62
  * BP X Profile Export Fix ( > version 2.0 )
63
 
2
  Contributors: qlstudio
3
  Tags: user, users, xprofile, usermeta csv, excel, batch, export, save, download
4
  Requires at least: 3.2
5
+ Tested up to: 3.9.2
6
+ Stable tag: 0.9.5
7
  License: GPLv2
8
 
9
  Export users data, metadata and buddypress xprofile data to a csv or Excel file
58
 
59
  == Changelog ==
60
 
61
+ = 0.9.5 =
62
+ * BP Serialized data fixes - thanks to @nicmare & @grexican
63
+ * Tested on WP 3.9.2 & BP 2.0.2
64
+
65
  = 0.9.4 =
66
  * BP X Profile Export Fix ( > version 2.0 )
67