Suppress errors in download handler Closes #5042
This commit is contained in:
parent
e557ff5aec
commit
624df4ea14
|
@ -319,8 +319,8 @@ class WC_Download_Handler {
|
|||
while ( ! feof( $handle ) ) {
|
||||
$buffer = fread( $handle, $chunksize );
|
||||
echo $buffer;
|
||||
ob_flush();
|
||||
flush();
|
||||
@ob_flush();
|
||||
@flush();
|
||||
|
||||
if ( $retbytes ) {
|
||||
$cnt += strlen( $buffer );
|
||||
|
|
Loading…
Reference in New Issue