Skip to content

Commit 57cb76b

Browse files
committed
2.2.4
1 parent d2314a2 commit 57cb76b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

library/core/export.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function __construct( \q\eud\plugin $plugin ){
2727
*/
2828
public function render(){
2929

30+
h::log( $_POST );
31+
3032
// Check if the user clicked on the Save, Load, or Delete Settings buttons ##
3133
if (
3234
! isset( $_POST['_wpnonce-q-eud-admin-page'] )
@@ -88,15 +90,15 @@ public function render(){
8890
// add custom args via filters ##
8991
$args = \apply_filters( 'q/eud/export/args', $args );
9092

91-
#h::log( $args );
93+
h::log( $args );
9294

9395
// pre_user query ##
9496
\add_action( 'pre_user_query', [ $this, 'pre_user_query' ] );
9597
$users = \get_users( $args );
9698
\remove_action( 'pre_user_query', [ $this, 'pre_user_query' ] );
9799

98100
// test args ##
99-
#h::log ( $users );
101+
h::log ( $users );
100102

101103
// no users found, so chuck an error into the args array and exit the export ##
102104
if ( ! $users ) {
@@ -129,8 +131,8 @@ public function render(){
129131

130132
// to csv ##
131133
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 );
134136

135137
// set a csv check flag
136138
$is_csv = true;
@@ -188,7 +190,7 @@ public function render(){
188190
// to xlsx ##
189191
header( 'Content-Description: File Transfer' );
190192
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");
192194
header('Content-Transfer-Encoding: binary');
193195
//header('Content-Length: ' . filesize($file));
194196
//header('Cache-Control: must-revalidate');

0 commit comments

Comments
 (0)