Thread Starter
babola
(@babola)
Regarding the problem on line 69 of deactivate.php…
"email" => $admin_data->data->user_email,
.… the scripts() function is enqueued on admin pages and wp_get_current_user() returns a bare stdClass with no user_email when no user is logged in. The fix is a simple null coalescing guard:
"email" => $admin_data->data->user_email ?? "",
-
This reply was modified 4 days, 8 hours ago by babola.