@@ -27,6 +27,8 @@ function __construct( \q\eud\plugin $plugin ){
27
27
*/
28
28
public function render (){
29
29
30
+ h::log ( $ _POST );
31
+
30
32
// Check if the user clicked on the Save, Load, or Delete Settings buttons ##
31
33
if (
32
34
! isset ( $ _POST ['_wpnonce-q-eud-admin-page ' ] )
@@ -88,15 +90,15 @@ public function render(){
88
90
// add custom args via filters ##
89
91
$ args = \apply_filters ( 'q/eud/export/args ' , $ args );
90
92
91
- # h::log( $args );
93
+ h::log ( $ args );
92
94
93
95
// pre_user query ##
94
96
\add_action ( 'pre_user_query ' , [ $ this , 'pre_user_query ' ] );
95
97
$ users = \get_users ( $ args );
96
98
\remove_action ( 'pre_user_query ' , [ $ this , 'pre_user_query ' ] );
97
99
98
100
// test args ##
99
- # h::log ( $users );
101
+ h::log ( $ users );
100
102
101
103
// no users found, so chuck an error into the args array and exit the export ##
102
104
if ( ! $ users ) {
@@ -129,8 +131,8 @@ public function render(){
129
131
130
132
// to csv ##
131
133
header ( 'Content-Description: File Transfer ' );
132
- header ( 'Content-Disposition: attachment; filename= ' .\esc_attr_e ( $ filename ).'.csv ' );
133
- header ( 'Content-Type: text/csv; charset= ' . \esc_attr_e ( \get_option ( 'blog_charset ' ) ), true );
134
+ header ( 'Content-Disposition: attachment; filename= ' .\esc_attr ( $ filename ).'.csv ' );
135
+ header ( 'Content-Type: text/csv; charset= ' . \esc_attr ( \get_option ( 'blog_charset ' ) ), true );
134
136
135
137
// set a csv check flag
136
138
$ is_csv = true ;
@@ -188,7 +190,7 @@ public function render(){
188
190
// to xlsx ##
189
191
header ( 'Content-Description: File Transfer ' );
190
192
header ('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ' );
191
- header ("Content-Disposition: attachment; filename= " .\esc_attr_e ( $ filename ).".xlsx " );
193
+ header ("Content-Disposition: attachment; filename= " .\esc_attr ( $ filename ).".xlsx " );
192
194
header ('Content-Transfer-Encoding: binary ' );
193
195
//header('Content-Length: ' . filesize($file));
194
196
//header('Cache-Control: must-revalidate');
0 commit comments