improved ob_end_clean for download handler

This commit is contained in:
toddlahman 2014-01-02 18:35:17 -08:00
parent 6f76d1941c
commit 75c76ff7b9
1 changed files with 7 additions and 1 deletions

View File

@ -217,7 +217,13 @@ class WC_Download_Handler {
@ob_end_clean(); // Clear the output buffer
if ( ob_get_level() ) {
@ob_end_clean(); // Zip corruption fix
$levels = ob_get_level();
for ( $i = 0; $i < $levels; $i++ ) {
@ob_end_clean(); // Zip corruption fix
}
}
if ( $is_IE && is_ssl() ) {