-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bypass for WP-CLI in Pantheon_Sessions->load() #150
Conversation
…ot change save handler when headers already sent` being written to the error log.
Thanks @mikeschinkel ! Landing this in #151 because of build status limbo: |
@mikeschinkel Actually, there was a reason WP Native PHP Sessions runs during WP-CLI #91 If you'd like to disable it on your own, here's documentation on how to do so: #80 (comment) |
@danielbachhuber — I see. Thanks for the follow up. Suggestion? Rather than enabling it to fix the problem, what about creating no-op mocks for each of the functions and have them loaded when WP-CLI is in use? I can of course use the workaround to meet my current needs. Thanks. |
That could potentially work. Happy to look at a pull request if you'd like to put one together. |
@danielbachhuber — Thanks for considering. I am looking into the potential of this right now. |
@danielbachhuber — So I started down the path of trying to mock and it quickly seemed like it would be a maintenance nightmare for you. So instead I went another direction, and this the fix to stop having it pollute the logs ends up being very simple; set
If you agree I can either create a pull request, or given how simple it is maybe you can just apply it? BTW, setting |
This seems like a reasonable approach to me. Landing it with #154
Good to know! |
Thanks @danielbachhuber! |
This to eliminate
Cannot change save handler when headers already sent
being written to the error log.