Changeset 3475370
- Timestamp:
- 03/05/2026 09:29:04 AM (4 weeks ago)
- Location:
- insertabot-ai-chatbot-solution/trunk
- Files:
-
- 3 edited
-
includes/admin-settings.php (modified) (1 diff)
-
insertabot-ai-chatbot-solution.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
insertabot-ai-chatbot-solution/trunk/includes/admin-settings.php
r3473149 r3475370 112 112 $value = is_string($value) ? sanitize_text_field($value) : ''; 113 113 114 // Clear API key 114 // Empty submission — the field is always blank by design (key is never pre-filled). 115 // Only clear the stored key if there isn't one already; otherwise treat as no-change. 115 116 if ($value === '') { 116 // Store cleared value via secure storage117 if (class_exists('Insertabot_Security')) {118 Insertabot_Security::store_api_key('');117 if (class_exists('Insertabot_Security') && Insertabot_Security::get_api_key() !== '') { 118 // Key already stored — blank field means "leave it alone". 119 return ''; 119 120 } 120 // Also clear the cached customer_id. 121 delete_option(self::OPTION_CUST_ID); 122 // Force disable when API key is cleared. 123 update_option(self::OPTION_EN, false); 121 // No key stored yet — nothing to clear. 124 122 return ''; 125 123 } -
insertabot-ai-chatbot-solution/trunk/insertabot-ai-chatbot-solution.php
r3475215 r3475370 4 4 * Plugin URI: https://insertabot.io 5 5 * Description: Add a customizable AI chatbot to your WordPress site. Real-time web search, unlimited conversations. Get your free API key at insertabot.io 6 * Version: 1.0. 66 * Version: 1.0.5 7 7 * Author: Mistyk Media 8 8 * Author URI: https://mistykmedia.com … … 21 21 22 22 // Define plugin constants 23 define('INSERTABOT_VERSION', '1.0. 6');23 define('INSERTABOT_VERSION', '1.0.5'); 24 24 define('INSERTABOT_PLUGIN_DIR', plugin_dir_path(__FILE__)); 25 25 define('INSERTABOT_PLUGIN_URL', plugin_dir_url(__FILE__)); -
insertabot-ai-chatbot-solution/trunk/readme.txt
r3475215 r3475370 4 4 Requires at least: 5.9 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 66 Stable tag: 1.0.3 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 83 83 This plugin connects to the Insertabot API service to provide AI chatbot functionality. 84 84 85 **Service URL:** https:// api.insertabot.io85 **Service URL:** https://insertabot.io 86 86 87 87 **When the chatbot is enabled, the following data is transmitted:** … … 206 206 == Changelog == 207 207 208 = 1.0.6 =209 * Fix: Corrected API base URL from api.insertabot.io (unresolvable) to insertabot.io to match Cloudflare Worker routes210 211 = 1.0.5 =212 * Fix: Added X-API-Key to fetch headers to avoid hitting auth guard and returning 401 before reaching checkout logic213 214 = 1.0.4 =215 * Added: Diagnostics.php - Add ?insertabot_debug1 to the end of your URL for api specs216 * Added: TROUBLESHOOTING.md - A follow-along troubleshooting guide for chatbot functionality217 218 208 = 1.0.3 = 219 209 * Fix: Widget no longer requires manual script tag in footer — plugin now injects it automatically on all pages
Note: See TracChangeset
for help on using the changeset viewer.