Export User Data - Version 2.2.5

Version Description

Download this release

Release Info

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

Code changes from version 2.2.4 to 2.2.5

CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
  ## Changelog ##
2
 
3
- *** 2.2.4 ***
4
 
5
  * New: WordPress Security release
6
 
1
  ## Changelog ##
2
 
3
+ *** 2.2.5 ***
4
 
5
  * New: WordPress Security release
6
 
export-user-data.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Export User Data
13
  * Plugin URI: http://qstudio.us/releases/export-user-data
14
  * Description: Export User data and metadata.
15
- * Version: 2.2.4
16
  * Author: Q Studio
17
  * Author URI: https://qstudio.us
18
  * License: GPL-2.0+
12
  * Plugin Name: Export User Data
13
  * Plugin URI: http://qstudio.us/releases/export-user-data
14
  * Description: Export User data and metadata.
15
+ * Version: 2.2.5
16
  * Author: Q Studio
17
  * Author URI: https://qstudio.us
18
  * License: GPL-2.0+
library/admin/render.php CHANGED
@@ -718,10 +718,12 @@ class render {
718
  }
719
 
720
  /**
721
- * Inline jQuery
722
- * @since 0.8.2
723
- */
724
- public function jquery(){
 
 
725
 
726
  // load the scripts only on the plugin admin page
727
  if (
@@ -732,10 +734,13 @@ class render {
732
  return ;
733
 
734
  }
735
-
736
- $_usermeta_saved_fields = h::quote_array( $this->plugin->get( '_usermeta_saved_fields' ) );
737
- $_bp_fields_saved_fields = h::quote_array( $this->plugin->get( '_bp_fields_saved_fields' ) );
738
- $_bp_fields_update_time_saved_fields = h::quote_array( $this->plugin->get( '_bp_fields_update_time_saved_fields' ) );
 
 
 
739
 
740
  ?>
741
  <script>
@@ -747,9 +752,7 @@ class render {
747
  jQuery('#usermeta, #bp_fields, #bp_fields_update_time').multiSelect();
748
 
749
  // Select any fields from saved settings ##
750
- jQuery('#usermeta').multiSelect('select',([<?php echo $_usermeta_saved_fields; // escaped by quote_array ?>]));
751
- // jQuery('#bp_fields').multiSelect('select',([<?php #echo $_bp_fields_saved_fields; // escaped by quote_array ?>]));
752
- // jQuery('#bp_fields_update_time').multiSelect('select',([<?php #echo $_bp_fields_update_time_saved_fields; // escaped by quote_array ?>]));
753
 
754
  // show only common ##
755
  jQuery('.usermeta-common').click(function(e){
718
  }
719
 
720
  /**
721
+ * Inline jQuery
722
+ *
723
+ * @since 0.8.2
724
+ */
725
+ public function jquery():void
726
+ {
727
 
728
  // load the scripts only on the plugin admin page
729
  if (
734
  return ;
735
 
736
  }
737
+
738
+ // get saved fields ##
739
+ $_usermeta_saved_fields = $this->plugin->get( '_usermeta_saved_fields' );
740
+ if ( ! is_array( $_usermeta_saved_fields ) ) {
741
+ $_usermeta_saved_fields = [];
742
+ }
743
+ // h::log( $_usermeta_saved_fields );
744
 
745
  ?>
746
  <script>
752
  jQuery('#usermeta, #bp_fields, #bp_fields_update_time').multiSelect();
753
 
754
  // Select any fields from saved settings ##
755
+ jQuery('#usermeta').multiSelect('select',([ <?php echo implode( ',', array_map( function( $field ){ return "'".\esc_attr( $field )."'"; }, $_usermeta_saved_fields ) );; // escaped ?>]));
 
 
756
 
757
  // show only common ##
758
  jQuery('.usermeta-common').click(function(e){
library/core/user.php CHANGED
@@ -193,8 +193,8 @@ class user {
193
 
194
  }
195
 
196
- #h::log( $key );
197
- #h::log( $options );
198
 
199
  // get prop ##
200
  $_q_eud_exports = $this->plugin->get( '_q_eud_exports' );
193
 
194
  }
195
 
196
+ // h::log( $key );
197
+ // h::log( $options );
198
 
199
  // get prop ##
200
  $_q_eud_exports = $this->plugin->get( '_q_eud_exports' );
plugin.php CHANGED
@@ -27,7 +27,7 @@ final class plugin {
27
  public static
28
 
29
  // current tag ##
30
- $_version = '2.2.4',
31
 
32
  // debugging control ##
33
  $_debug = \WP_DEBUG
@@ -43,8 +43,8 @@ final class plugin {
43
 
44
  $_q_eud_exports = '', // export settings ##
45
  $_usermeta_saved_fields = [],
46
- $_bp_fields_saved_fields = [],
47
- $_bp_fields_update_time_saved_fields = [],
48
  $_role = '',
49
  $_roles = '0',
50
  $_user_fields = '1',
@@ -56,7 +56,7 @@ final class plugin {
56
  $_updated_since_date = '',
57
  $_field_updated_since = '',
58
  $_format = '',
59
- $_bp_data_available = false,
60
  $_allowed_tags = '',
61
 
62
  // api ##
27
  public static
28
 
29
  // current tag ##
30
+ $_version = '2.2.5',
31
 
32
  // debugging control ##
33
  $_debug = \WP_DEBUG
43
 
44
  $_q_eud_exports = '', // export settings ##
45
  $_usermeta_saved_fields = [],
46
+ // $_bp_fields_saved_fields = [],
47
+ // $_bp_fields_update_time_saved_fields = [],
48
  $_role = '',
49
  $_roles = '0',
50
  $_user_fields = '1',
56
  $_updated_since_date = '',
57
  $_field_updated_since = '',
58
  $_format = '',
59
+ // $_bp_data_available = false,
60
  $_allowed_tags = '',
61
 
62
  // api ##
readme.md CHANGED
@@ -5,7 +5,7 @@
5
  **Requires PHP:** 6.0
6
  **Requires at least:** 5.0
7
  **Tested up to:** 5.8.2
8
- **Stable tag:** 2.2.3
9
  **License:** GPLv2
10
 
11
  Export users data and metadata to a csv or Excel file
5
  **Requires PHP:** 6.0
6
  **Requires at least:** 5.0
7
  **Tested up to:** 5.8.2
8
+ **Stable tag:** 2.2.5
9
  **License:** GPLv2
10
 
11
  Export users data and metadata to a csv or Excel file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: users, export, usermeta, excel
4
  Requires PHP: 7.0
5
  Requires at least: 4.8
6
  Tested up to: 5.8.2
7
- Stable tag: 2.2.4
8
  License: GPLv2
9
 
10
  Export users data and metadata to a csv or Excel file
4
  Requires PHP: 7.0
5
  Requires at least: 4.8
6
  Tested up to: 5.8.2
7
+ Stable tag: 2.2.5
8
  License: GPLv2
9
 
10
  Export users data and metadata to a csv or Excel file