Open helloqiu opened 9 years ago
@xueruini
I was unavailable these days due to personal affairs. will check this soon.
@excelle08 told me that this error appears because wp_signon() sends cookie and the way I use register_account() can send header earlier.
This post explains the issue in a very good manner, please read it carefully, and figure out the solution:
http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php
@helloqiu have you investigate according to the link I posted?
I write a new test for registration.
The register_account() aims to create a new account and register it. I use a fixture to write data into $_POST.But I get errors while running the test:
@excelle08 told me that this error appears because wp_signon() sends cookie and the way I use register_account() can send header earlier.
But I have no ideas how to solve this. Could anybody help me ? @birchpress/engineering