Changeset 3382947
- Timestamp:
- 10/22/2025 10:01:19 PM (4 months ago)
- Location:
- faq-magic/trunk
- Files:
-
- 3 edited
-
faq-magic.php (modified) (1 diff)
-
js/faq-magic-admin.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
faq-magic/trunk/faq-magic.php
r3382225 r3382947 5 5 * Plugin URI: http://www.hub5050.com/faq-magic/ 6 6 * Description: Webpage JSON-LD and FAQ plugin for AI bot compatibility 7 * Version: 1.3. 37 * Version: 1.3.4 8 8 * Author: Clinton [Hub5050.com] 9 9 * Author URI: http://www.hub5050.com -
faq-magic/trunk/js/faq-magic-admin.js
r3382225 r3382947 146 146 if (faqm_ajax.inc_ai && String(faqm_ajax.inc_ai) === "1") { 147 147 let currentCode = $("#faqm_code").text().trim(); 148 const lastCheckKey = 'faqm_last_check';149 148 const now = Date.now(); 150 149 const oneDay = 24 * 60 * 60 * 1000; // 1 day in ms 151 const lastCheck = parseInt(localStorage.getItem( lastCheckKey) || '0', 10);150 const lastCheck = parseInt(localStorage.getItem('faqm_last_check') || '0', 10); 152 151 console.log('SECURITY CODE',currentCode); //================= 153 152 // --- Determine if we need to refresh (no valid code or last check > 1 day) --- … … 180 179 if (r && r.success) { 181 180 $("#faqm_code").text(newCode); 182 localStorage.setItem( lastCheckKey, String(now)); //record check time181 localStorage.setItem('faqm_last_check', String(now)); //record check time 183 182 faqmShowStatus("AI security code retrieved and saved", "success"); 184 183 } else { … … 541 540 8000 542 541 ); 542 localStorage.setItem('faqm_last_check', 0); //reset the local storage 543 543 // Clear the stored code so membership rechecks next load 544 544 $.post(faqm_ajax.ajax_url, { -
faq-magic/trunk/readme.txt
r3382225 r3382947 3 3 Tags: FAQ, JSON-LD, Schema, AI, SEO 4 4 Requires at least: 5.1 5 Tested up to: 6.8 6 Stable tag: 1.3. 35 Tested up to: 6.8.3 6 Stable tag: 1.3.4 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 127 127 128 128 == Changelog == 129 = 1.3.4 = 130 * Improved licence code refresh 131 129 132 = 1.3.3 = 130 133 * Help and additional UI improvements
Note: See TracChangeset
for help on using the changeset viewer.