fclose requires a resource, not a string.
This commit is contained in:
parent
2740db17c0
commit
7896b49684
|
@ -35,7 +35,7 @@ class WC_Logger {
|
|||
*/
|
||||
public function __destruct() {
|
||||
foreach ( $this->_handles as $handle ) {
|
||||
@fclose( escapeshellarg( $handle ) );
|
||||
@fclose( $handle );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue