Version Description
- Fix: Moved "Standard User Fields" option outside of BP conditional loop - spotted by @j4t
Download this release
Release Info
Developer | qlstudio |
Plugin | Export User Data |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- export-user-data.php +31 -22
- readme.txt +4 -1
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 BuddyPress X-Profile data.
|
7 |
-
Version: 1.2.
|
8 |
Author: Q Studio
|
9 |
Author URI: http://qstudio.us
|
10 |
License: GPL2
|
@@ -23,7 +23,7 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
23 |
{
|
24 |
|
25 |
// plugin version
|
26 |
-
define( 'Q_EXPORT_USER_DATA_VERSION', '1.2.
|
27 |
|
28 |
// instatiate class via hook, only if inside admin
|
29 |
if ( is_admin() ) {
|
@@ -42,7 +42,7 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
42 |
class Q_Export_User_Data {
|
43 |
|
44 |
// debug ##
|
45 |
-
const debug =
|
46 |
|
47 |
// Refers to a single instance of this class. ##
|
48 |
private static $instance = null;
|
@@ -54,8 +54,9 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
54 |
private $bp_fields_saved_fields = array();
|
55 |
private $bp_fields_update_time_saved_fields = array();
|
56 |
private $role = '';
|
57 |
-
private $roles = '
|
58 |
-
|
|
|
59 |
private $start_date = '';
|
60 |
private $end_date = '';
|
61 |
private $limit_offset = '';
|
@@ -327,7 +328,7 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
327 |
$this->limit_offset = '';
|
328 |
$this->limit_total = '';
|
329 |
$this->format = '';
|
330 |
-
|
331 |
}
|
332 |
|
333 |
}
|
@@ -1316,21 +1317,6 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
1316 |
</td>
|
1317 |
</tr>
|
1318 |
|
1319 |
-
<tr valign="top" class="toggleable">
|
1320 |
-
<th scope="row"><label for="user_fields"><?php _e( 'Standard User Fields', 'export-user-data' ); ?></label></th>
|
1321 |
-
<td>
|
1322 |
-
<input id='user_fields' type='checkbox' name='user_fields' value='1' <?php checked( isset ( $this->user_fields ) ? intval ( $this->user_fields ) : '', 1 ); ?> />
|
1323 |
-
<p class="description"><?php
|
1324 |
-
printf(
|
1325 |
-
__( 'Include Standard user profile fields, such as user_login. <a href="%s" target="_blank">%s</a>', 'export-user-data' )
|
1326 |
-
, esc_html('https://codex.wordpress.org/Database_Description#Table:_wp_users')
|
1327 |
-
, 'Codex'
|
1328 |
-
);
|
1329 |
-
|
1330 |
-
?></p>
|
1331 |
-
</td>
|
1332 |
-
</tr>
|
1333 |
-
|
1334 |
<tr valign="top" class="toggleable">
|
1335 |
<th scope="row"><label for="groups"><?php _e( 'BP User Groups', 'export-user-data' ); ?></label></th>
|
1336 |
<td>
|
@@ -1349,6 +1335,29 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
1349 |
} // BP installed and active ##
|
1350 |
|
1351 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1352 |
<tr valign="top" class="toggleable">
|
1353 |
<th scope="row"><label for="q_eud_users_role"><?php _e( 'Role', 'export-user-data' ); ?></label></th>
|
1354 |
<td>
|
@@ -1769,7 +1778,7 @@ if ( ! class_exists( 'Q_Export_User_Data' ) )
|
|
1769 |
public static function get_user_fields()
|
1770 |
{
|
1771 |
|
1772 |
-
//
|
1773 |
if ( isset( $_POST['user_fields'] ) && '1' == $_POST['user_fields'] ) {
|
1774 |
|
1775 |
// debug ##
|
4 |
Plugin Name: Export User Data
|
5 |
Plugin URI: http://qstudio.us/plugins/
|
6 |
Description: Export User data, metadata and BuddyPress X-Profile data.
|
7 |
+
Version: 1.2.5
|
8 |
Author: Q Studio
|
9 |
Author URI: http://qstudio.us
|
10 |
License: GPL2
|
23 |
{
|
24 |
|
25 |
// plugin version
|
26 |
+
define( 'Q_EXPORT_USER_DATA_VERSION', '1.2.5' ); // version ##
|
27 |
|
28 |
// instatiate class via hook, only if inside admin
|
29 |
if ( is_admin() ) {
|
42 |
class Q_Export_User_Data {
|
43 |
|
44 |
// debug ##
|
45 |
+
const debug = false;
|
46 |
|
47 |
// Refers to a single instance of this class. ##
|
48 |
private static $instance = null;
|
54 |
private $bp_fields_saved_fields = array();
|
55 |
private $bp_fields_update_time_saved_fields = array();
|
56 |
private $role = '';
|
57 |
+
private $roles = '0';
|
58 |
+
private $user_fields = '1';
|
59 |
+
private $groups = '0';
|
60 |
private $start_date = '';
|
61 |
private $end_date = '';
|
62 |
private $limit_offset = '';
|
328 |
$this->limit_offset = '';
|
329 |
$this->limit_total = '';
|
330 |
$this->format = '';
|
331 |
+
|
332 |
}
|
333 |
|
334 |
}
|
1317 |
</td>
|
1318 |
</tr>
|
1319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
<tr valign="top" class="toggleable">
|
1321 |
<th scope="row"><label for="groups"><?php _e( 'BP User Groups', 'export-user-data' ); ?></label></th>
|
1322 |
<td>
|
1335 |
} // BP installed and active ##
|
1336 |
|
1337 |
?>
|
1338 |
+
<tr valign="top" class="toggleable">
|
1339 |
+
<th scope="row"><label for="user_fields"><?php _e( 'Standard User Fields', 'export-user-data' ); ?></label></th>
|
1340 |
+
<td>
|
1341 |
+
<input id='user_fields' type='checkbox' name='user_fields' value='1' <?php checked( isset ( $this->user_fields ) ? intval ( $this->user_fields ) : '', 1 ); ?> />
|
1342 |
+
<p class="description"><?php
|
1343 |
+
|
1344 |
+
if ( self::debug ) {
|
1345 |
+
|
1346 |
+
self::log( 'user_fields: '.$this->user_fields );
|
1347 |
+
#echo 'user_fields: '. $this->user_fields;
|
1348 |
+
|
1349 |
+
}
|
1350 |
+
|
1351 |
+
printf(
|
1352 |
+
__( 'Include Standard user profile fields, such as user_login. <a href="%s" target="_blank">%s</a>', 'export-user-data' )
|
1353 |
+
, esc_html('https://codex.wordpress.org/Database_Description#Table:_wp_users')
|
1354 |
+
, 'Codex'
|
1355 |
+
);
|
1356 |
+
|
1357 |
+
?></p>
|
1358 |
+
</td>
|
1359 |
+
</tr>
|
1360 |
+
|
1361 |
<tr valign="top" class="toggleable">
|
1362 |
<th scope="row"><label for="q_eud_users_role"><?php _e( 'Role', 'export-user-data' ); ?></label></th>
|
1363 |
<td>
|
1778 |
public static function get_user_fields()
|
1779 |
{
|
1780 |
|
1781 |
+
// standard wp_users fields ##
|
1782 |
if ( isset( $_POST['user_fields'] ) && '1' == $_POST['user_fields'] ) {
|
1783 |
|
1784 |
// debug ##
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: qlstudio
|
|
3 |
Tags: user, users, xprofile, usermeta csv, excel, batch, export, save, download
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 4.3.1
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2
|
8 |
|
9 |
Export users data, metadata and buddypress xprofile data to a csv or Excel file
|
@@ -58,6 +58,9 @@ Click on the 'Export User Data' link in the 'Users' menu, choose the role and th
|
|
58 |
|
59 |
== Changelog ==
|
60 |
|
|
|
|
|
|
|
61 |
= 1.2.4 =
|
62 |
* Fix: Removed comments to screen
|
63 |
|
3 |
Tags: user, users, xprofile, usermeta csv, excel, batch, export, save, download
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 4.3.1
|
6 |
+
Stable tag: 1.2.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 |
+
= 1.2.5 =
|
62 |
+
* Fix: Moved "Standard User Fields" option outside of BP conditional loop - spotted by @j4t
|
63 |
+
|
64 |
= 1.2.4 =
|
65 |
* Fix: Removed comments to screen
|
66 |
|