Skip to content
Snippets Groups Projects
Commit 55f56fec authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

session-item: remove the ACTIVATING/EXPORTING flag before the callback

It is a valid use case to do things like call wp_session_item_export()
from within the async ready callback of _activate(), and it's not
possible unless the ACTIVATING flag has been cleared first.

To do this, use a GCClosure to wrap the callback and install marshal
guards, which are called before and after the callback, to modify
the flags.
parent 43711828
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment