There is an issue in the following file:
/uixpress/admin/src/Rest/RestLogout.php
Issue Description:
When the “Log Out” button is pressed, the user is logged out successfully, but the page remains on the same screen, and the spinner keeps spinning without redirecting as expected. Upon refreshing the page, it becomes evident that the logout was successful.
Temporary Workaround:
I implemented a temporary fix by destroying the WooCommerce session first, which resolves the spinning issue and allows the logout process to function as intended. However, this workaround might require further investigation and refinement.
wp_clear_auth_cookie();
if (function_exists('WC')) {
return new \WP_REST_Response(["success" => true, "message" => "Logged out successfully"], 200);
WC()->session->destroy_session();
}
Please authenticate to join the conversation.
In Review
🐛 Bug Reports
7 days ago
Ian Davis
Get notified by email when there are changes.
In Review
🐛 Bug Reports
7 days ago
Ian Davis
Get notified by email when there are changes.