PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.0.8
MxChat – AI Chatbot & Content Generation for WordPress v1.0.8
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | includes/class-mxchat-user.php +2 -2 3.2.211.0.8 View file →
@@ -8,12 +8,12 @@
8 8 // Function to get user identifier (username, email, or session ID)
9 9 public static function mxchat_get_user_identifier() {
10 10 if (is_user_logged_in()) {
11 11 $current_user = wp_get_current_user();
12 - //error_log('Current User: ' . print_r($current_user, true));
12 + error_log('Current User: ' . print_r($current_user, true));
13 13 return $current_user->user_login; // Use username as identifier
14 14 } else {
15 - //error_log('User is not logged in. Using IP as identifier.');
15 + error_log('User is not logged in. Using IP as identifier.');
16 16 return sanitize_text_field($_SERVER['REMOTE_ADDR']); // Use IP address as fallback
17 17 }
18 18 }
19 19