Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,13 @@ class Flash_Alert
|
||||
*/
|
||||
public static function get_pending_messages(): array
|
||||
{
|
||||
// No session cookie = no session = no pending messages.
|
||||
// Avoid calling get_session_id() which would create a session
|
||||
// for anonymous visitors who have never triggered session activation.
|
||||
if (empty($_COOKIE['rsx'])) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$session_id = Session::get_session_id();
|
||||
if ($session_id === null) {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user