IIS fix
This commit is contained in:
parent
6dc4d2add8
commit
2efd580f50
|
@ -168,8 +168,14 @@ class woocommerce {
|
|||
* @return location
|
||||
*/
|
||||
function redirect( $location, $status ) {
|
||||
global $is_IIS;
|
||||
|
||||
// IIS fix
|
||||
if ($is_IIS) session_write_close();
|
||||
|
||||
$_SESSION['errors'] = $this->errors;
|
||||
$_SESSION['messages'] = $this->messages;
|
||||
|
||||
return $location;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue