Plugin Directory

Changeset 3382947


Ignore:
Timestamp:
10/22/2025 10:01:19 PM (4 months ago)
Author:
creatorseo
Message:

1.3.4

  • Improved licence code refresh
Location:
faq-magic/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • faq-magic/trunk/faq-magic.php

    r3382225 r3382947  
    55 * Plugin URI:  http://www.hub5050.com/faq-magic/
    66 * Description: Webpage JSON-LD and FAQ plugin for AI bot compatibility
    7  * Version:     1.3.3
     7 * Version:     1.3.4
    88 * Author:      Clinton [Hub5050.com]
    99 * Author URI:  http://www.hub5050.com
  • faq-magic/trunk/js/faq-magic-admin.js

    r3382225 r3382947  
    146146        if (faqm_ajax.inc_ai && String(faqm_ajax.inc_ai) === "1") {
    147147            let currentCode = $("#faqm_code").text().trim();
    148             const lastCheckKey = 'faqm_last_check';
    149148            const now = Date.now();
    150149            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);
    152151            console.log('SECURITY CODE',currentCode); //=================
    153152            // --- Determine if we need to refresh (no valid code or last check > 1 day) ---
     
    180179                                if (r && r.success) {
    181180                                    $("#faqm_code").text(newCode);
    182                                     localStorage.setItem(lastCheckKey, String(now)); //record check time
     181                                    localStorage.setItem('faqm_last_check', String(now)); //record check time
    183182                                    faqmShowStatus("AI security code retrieved and saved", "success");
    184183                                } else {
     
    541540            8000
    542541        );
     542        localStorage.setItem('faqm_last_check', 0); //reset the local storage
    543543        // Clear the stored code so membership rechecks next load
    544544        $.post(faqm_ajax.ajax_url, {
  • faq-magic/trunk/readme.txt

    r3382225 r3382947  
    33Tags: FAQ, JSON-LD, Schema, AI, SEO
    44Requires at least: 5.1
    5 Tested up to: 6.8
    6 Stable tag: 1.3.3
     5Tested up to: 6.8.3
     6Stable tag: 1.3.4
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    127127
    128128== Changelog ==
     129= 1.3.4 =
     130* Improved licence code refresh
     131
    129132= 1.3.3 =
    130133* Help and additional UI improvements
Note: See TracChangeset for help on using the changeset viewer.