mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed small notice;
- fixed issue with download files with opened PHP buffers;
This commit is contained in:
@@ -183,6 +183,12 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
header('Content-Length: ' . $size);
|
||||
|
||||
$levels = ob_get_level();
|
||||
for ( $i = 0; $i < $levels; $i++ ) {
|
||||
@ob_end_clean();
|
||||
}
|
||||
|
||||
readfile( $file_path );
|
||||
exit;
|
||||
}
|
||||
@@ -217,6 +223,12 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
header('Content-Length: ' . $size);
|
||||
|
||||
$levels = ob_get_level();
|
||||
for ( $i = 0; $i < $levels; $i++ ) {
|
||||
@ob_end_clean();
|
||||
}
|
||||
|
||||
readfile( $file_path );
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -70,10 +70,9 @@ if ( ! class_exists( 'um\core\GDPR' ) ) {
|
||||
* @return mixed
|
||||
*/
|
||||
function email_registration_data( $submitted ) {
|
||||
|
||||
$timestamp = ! empty( $submitted['timestamp'] ) ? $submitted['timestamp'] : $submitted['use_gdpr_agreement'];
|
||||
|
||||
if ( ! empty( $submitted['use_gdpr_agreement'] ) ) {
|
||||
$timestamp = ! empty( $submitted['timestamp'] ) ? $submitted['timestamp'] : $submitted['use_gdpr_agreement'];
|
||||
|
||||
$submitted['GDPR Applied'] = date( "d M Y H:i", $timestamp );
|
||||
unset( $submitted['use_gdpr_agreement'] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user