[Fri Nov 21 11:55:06 2014] [error] [client ::1] PHP Warning: Cannot modify header information - headers already sent by (output started at /work/demo/wp-admin/menu-header.php:118) in /work/demo/inc/lib/wp-session-manager/class-wp-session.php on line 124, referer: https://localhost/~alvin/demo/wp-admin/edit.php?post_type=exercise
這個warning猜測是因為正常處理下,最後會執行到wp_session_commit(),但若是用ajax的方式時,或直接用die()結束時,並沒有執行wp_session_commit(),以至於有這個warning,最後實驗結果,果然如我所料,哈哈
參考網址:
沒有留言:
張貼留言