Plugin Directory

Changeset 3465448


Ignore:
Timestamp:
02/20/2026 12:42:56 AM (6 weeks ago)
Author:
intufind
Message:

Release intufind v1.2.1

Location:
intufind
Files:
34 added
3 edited

Legend:

Unmodified
Added
Removed
  • intufind/trunk/includes/class-intufind-shortcodes.php

    r3463908 r3465448  
    8989
    9090        $html  = '<button type="button" class="' . esc_attr( implode( ' ', $classes ) ) . '"';
    91         $html .= ' onclick="intufindTriggerSearch()"';
     91        $html .= ' onclick="(window.intufindTriggerSearch||function(){window.__intufindPendingOpen=true})()"';
    9292        $html .= ' aria-label="' . esc_attr__( 'Open search', 'intufind' ) . '"';
    9393        $html .= ' role="search">';
     
    257257            if (!isMac) document.documentElement.classList.add('itf-platform-other');
    258258
     259            var fallbackUrl = '<?php echo esc_url( home_url( '/?s=' ) ); ?>';
     260
     261            function scheduleSearchFallback() {
     262                if (window.__intufindSearchFallbackTimer) return;
     263                window.__intufindSearchFallbackTimer = setTimeout(function() {
     264                    if (window.__intufindPendingOpen) {
     265                        window.__intufindPendingOpen = false;
     266                        window.location.href = fallbackUrl;
     267                    }
     268                }, 4000);
     269            }
     270
    259271            window.intufindTriggerSearch = function() {
    260272                if (window.IntufindSearch && typeof window.IntufindSearch.open === 'function') {
    261273                    window.IntufindSearch.open();
    262274                } else {
    263                     window.location.href = '<?php echo esc_url( home_url( '/?s=' ) ); ?>';
     275                    window.__intufindPendingOpen = true;
     276                    scheduleSearchFallback();
    264277                }
    265278            };
     279
     280            if (window.__intufindPendingOpen) {
     281                scheduleSearchFallback();
     282            }
    266283        })();
    267284        </script>
  • intufind/trunk/intufind.php

    r3463908 r3465448  
    44 * Plugin URI: https://intufind.com/integrations/wordpress
    55 * Description: AI-powered search and chat for WordPress. Syncs your content to the cloud for semantic search, intelligent recommendations, and conversational AI.
    6  * Version: 1.2.0
     6 * Version: 1.2.1
    77 * Requires at least: 6.0
    88 * Requires PHP: 8.0
     
    2626 * Plugin constants.
    2727 */
    28 define( 'INTUFIND_VERSION', '1.2.0' );
     28define( 'INTUFIND_VERSION', '1.2.1' );
    2929define( 'INTUFIND_PLUGIN_FILE', __FILE__ );
    3030define( 'INTUFIND_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • intufind/trunk/readme.txt

    r3463908 r3465448  
    55Tested up to: 6.9
    66Requires PHP: 8.0
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88WC tested up to: 9.6
    99License: GPLv2 or later
     
    215215== Changelog ==
    216216
     217= 1.2.1 =
     218* Fixed search shortcode not opening the modal when clicked before the widget finishes loading
     219* Added graceful fallback to native site search if the widget fails to load (CDN/network issues)
     220
    217221= 1.2.0 =
    218222* Fixed $0 price display for WooCommerce variable products and products with a $0 sale price
     
    278282== Upgrade Notice ==
    279283
     284= 1.2.1 =
     285Fixes search shortcode failing to open when clicked before the widget loads. Adds fallback to native search if the widget is unreachable.
     286
    280287= 1.2.0 =
    281288Fixes $0 pricing on variable products and adds price range display. New admin toggles for the search widget and floating trigger button.
Note: See TracChangeset for help on using the changeset viewer.