Plugin Directory

Changeset 3834588


Ignore:
Timestamp:
11/30/2026 09:05:07 AM (61 minutes ago)
Author:
seomedseb
Message:

Release 0.21.8

Location:
seomedseb-smart-search
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • seomedseb-smart-search/tags/0.21.8/assets/js/frontend.js

    r3833782 r3834588  
    458458        /**
    459459         * Small "Sponsored by Smart Search" footer shown at the bottom of the
    460          * dropdown. Gated behind SSWS_DATA.branding.show (itself driven by a PHP
    461          * `ssws_show_branding` filter, default true) rather than a settings-UI
    462          * toggle — this build is 100% free, so the branding stays on, but the
    463          * hook is there so a future Pro add-on could disable it without needing
    464          * to touch this file.
     460         * dropdown. Gated behind SSWS_DATA.branding.show, which is the opt-in
     461         * "Show Sponsored by footer" setting (off by default) and the PHP
     462         * `ssws_show_branding` filter.
    465463         */
    466464        function renderBranding() {
  • seomedseb-smart-search/tags/0.21.8/changelog-full.txt

    r3833782 r3834588  
    55WordPress.org's readme parser truncates that section at 5000 characters
    66for the "View version details" popup.
     7
     8= 0.21.8 =
     9* Tested with WordPress 7.2 and WooCommerce 11.3.
     10* Fixed: on block themes (Twenty Twenty-Five and similar) every page with a search bar logged a JavaScript SyntaxError. A spare copy of the script was printed inline and WordPress's typography filter mangled it. Block themes now get the normal script only; page builders still get the inline copy they need.
     11* Changed: the "Sponsored by Smart Search" line under the results is now off unless you turn it on (Autocomplete tab), as WordPress.org requires for credits on the public site. Sites that had it on from the old default have it switched off once on update.
    712
    813= 0.21.7 =
  • seomedseb-smart-search/tags/0.21.8/includes/class-ssws-admin-page.php

    r3833759 r3834588  
    10121012                } );
    10131013                $this->field_row( __( 'Show "Sponsored by" footer', 'seomedseb-smart-search' ), function () use ( $s ) {
    1014                         $this->checkbox( 'show_branding', $s['show_branding'], __( 'A small "Sponsored by Smart Search" line at the bottom of the results dropdown. This build is free with no ads or upsells, so it\'s on by default — turn it off any time, no code required.', 'seomedseb-smart-search' ) );
     1014                        $this->checkbox( 'show_branding', $s['show_branding'], __( 'A small "Sponsored by Smart Search" line at the bottom of the results dropdown. Off unless you turn it on — it is a thank-you, never a requirement, and the plugin works exactly the same either way.', 'seomedseb-smart-search' ) );
    10151015                } );
    10161016
  • seomedseb-smart-search/tags/0.21.8/includes/class-ssws-frontend.php

    r3832632 r3834588  
    3535                add_filter( 'wp_nav_menu_items', 'do_shortcode' );
    3636                add_filter( 'walker_nav_menu_start_el', 'do_shortcode' );
     37
     38                // Last in line, so it sees the template WordPress will actually load
     39                // after every theme and builder has had its say. See enqueue_now().
     40                add_filter( 'template_include', array( $this, 'note_template' ), PHP_INT_MAX );
     41        }
     42
     43        /**
     44         * Set when the request renders through core's block template canvas.
     45         *
     46         * @var bool
     47         */
     48        private static $block_canvas = false;
     49
     50        /**
     51         * Remember whether the page is drawn by a block theme's template canvas.
     52         *
     53         * @param string $template Template file about to be loaded.
     54         * @return string Unchanged.
     55         */
     56        public function note_template( $template ) {
     57                self::$block_canvas = is_string( $template )
     58                        && wp_normalize_path( $template ) === wp_normalize_path( ABSPATH . WPINC . '/template-canvas.php' );
     59
     60                return $template;
    3761        }
    3862
    … …  
    160184                        'features'  => SSWS_Features::frontend_data(),
    161185                        // A small "Sponsored by Smart Search" footer in the dropdown.
    162                         // This build is 100% free, so it's on by default. Admins can
    163                         // turn it off from the Autocomplete tab (added after a shop
    164                         // owner needed it gone for their own store-policy reasons);
    165                         // the filter still exists underneath for a future Pro add-on
    166                         // or a developer who'd rather control it from code.
     186                        // Off unless the shop owner ticks it on the Autocomplete tab:
     187                        // WordPress.org guideline 10 requires credits on the public
     188                        // site to be opt-in. The filter can still switch it off from
     189                        // code.
    167190                        'branding'  => array(
    168191                                'show' => ! empty( $autocomplete['show_branding'] ) && (bool) apply_filters( 'ssws_show_branding', true ),
    … …  
    226249                // never again at the mercy of whether some builder's rendering
    227250                // pipeline happens to line up with wp_head.
     251                //
     252                // One case is left out: a block theme's template canvas. Core renders
     253                // the whole template there before wp_head() precisely so that blocks
     254                // can enqueue, so the normal path above is guaranteed to work. And
     255                // the copy did harm there: the canvas runs wptexturize() over the
     256                // rendered template, which turns `&&` in the inline script into
     257                // `&#038;&#038;` once the script contains a `<` — a SyntaxError on
     258                // every page that carried a bar. A builder that replaces the template
     259                // is not on the canvas, so it keeps the copy it needs.
     260                if ( self::$block_canvas && ! did_action( 'wp_footer' ) && ! wp_doing_ajax() ) {
     261                        return '';
     262                }
     263
    228264                if ( ! self::$inline_fallback_printed ) {
    229265                        self::$inline_fallback_printed = true;
  • seomedseb-smart-search/tags/0.21.8/includes/class-ssws-settings.php

    r3833759 r3834588  
    112112                                'show_badges'           => true, // out of stock / backorder / sale badges
    113113                                'show_add_to_cart'      => true, // quick add-to-cart in the details panel
    114                                 'show_branding'         => true, // "Sponsored by Smart Search" footer
     114                                'show_branding'         => false, // "Sponsored by Smart Search" footer — opt-in (plugin guideline 10)
    115115                        ),
    116116                        'search_config' => array(
  • seomedseb-smart-search/tags/0.21.8/readme.txt

    r3833782 r3834588  
    33Tags: woocommerce, search, ajax search, autocomplete, product search
    44Requires at least: 6.0
    5 Tested up to: 7.1
     5Tested up to: 7.2
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 0.21.7
     8Stable tag: 0.21.8
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free — no premium tier.
     12A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free.
    1313
    1414== Description ==
    … …  
    19192. **A relevance engine with typo tolerance built in.** Search runs against a dedicated, optimized index table (not the slow default WordPress search), with fuzzy/SOUNDEX fallback matching so misspelled searches still find the right product.
    2020
    21 Every feature in this plugin — including the search engine, the full Design tab, analytics, and the indexer — is free. There is no "Pro" upsell built into this version.
     21Every feature in this plugin — including the search engine, the full Design tab, analytics, and the indexer — is free. There is no "Pro" version and no upsell.
    2222
    2323= Key features =
    … …  
    5656
    5757= Is this really free? =
    58 Yes. Every feature described above is included at no cost. A future paid tier may exist someday, but it is a separate, later decision and does not affect this version.
     58Yes. Every feature described above is included at no cost, with no paid version, no upsells and no ads.
    5959
    6060= Does it work with variable products? =
    … …  
    6969
    7070== Changelog ==
     71
     72= 0.21.8 =
     73* Tested with WordPress 7.2 and WooCommerce 11.3.
     74* Fixed: on block themes (Twenty Twenty-Five and similar) every page with a search bar logged a JavaScript SyntaxError. A spare copy of the script was printed inline and WordPress's typography filter mangled it. Block themes now get the normal script only; page builders still get the inline copy they need.
     75* Changed: the "Sponsored by Smart Search" line under the results is now off unless you turn it on (Autocomplete tab), as WordPress.org requires for credits on the public site. Sites that had it on from the old default have it switched off once on update.
    7176
    7277= 0.21.7 =
  • seomedseb-smart-search/tags/0.21.8/seomedseb-smart-search.php

    r3833782 r3834588  
    44 * Plugin URI:         https://seomedseb.dk/plugins/smart-search-for-woocommerce/
    55 * Description:        A fully customizable AJAX search & autocomplete plugin for WooCommerce, with deep design customization, typo-tolerant search, and a foundation for AI-powered semantic search. 100% free.
    6  * Version:            0.21.7
     6 * Version:            0.21.8
    77 * Requires at least:  6.0
    88 * Requires PHP:       7.4
    99 * Requires Plugins:   woocommerce
    1010 * WC requires at least: 6.0
     11 * WC tested up to:     11.3
    1112 * Author:             SEOmedSEB
    1213 * License:            GPL v2 or later
    … …  
    2324 * Core constants.
    2425 */
    25 define( 'SSWS_VERSION', '0.21.7' );
     26define( 'SSWS_VERSION', '0.21.8' );
    2627define( 'SSWS_FILE', __FILE__ );
    2728define( 'SSWS_PATH', plugin_dir_path( __FILE__ ) );
    … …  
    271272        }
    272273
     274        // 0.21.8 made the "Sponsored by" footer opt-in (WordPress.org plugin
     275        // guideline 10: credits on the public site must be off until the site
     276        // owner turns them on). Up to now the box came ticked, so a stored
     277        // "on" is the old default rather than a choice anyone made. Clear it
     278        // once; whoever wants the line back ticks the box again.
     279        if ( version_compare( $stored, '0.21.8', '<' ) && version_compare( $stored, '0', '>' ) ) {
     280                $autocomplete = SSWS_Settings::group( 'autocomplete' );
     281                if ( ! empty( $autocomplete['show_branding'] ) ) {
     282                        $autocomplete['show_branding'] = false;
     283                        SSWS_Settings::update_group( 'autocomplete', $autocomplete );
     284                }
     285        }
     286
    273287        // New/changed columns mean the existing rows are incomplete (an upgraded
    274288        // table's parent_id/product_type default to 0/'simple' for every row that
  • seomedseb-smart-search/trunk/assets/js/frontend.js

    r3833782 r3834588  
    458458        /**
    459459         * Small "Sponsored by Smart Search" footer shown at the bottom of the
    460          * dropdown. Gated behind SSWS_DATA.branding.show (itself driven by a PHP
    461          * `ssws_show_branding` filter, default true) rather than a settings-UI
    462          * toggle — this build is 100% free, so the branding stays on, but the
    463          * hook is there so a future Pro add-on could disable it without needing
    464          * to touch this file.
     460         * dropdown. Gated behind SSWS_DATA.branding.show, which is the opt-in
     461         * "Show Sponsored by footer" setting (off by default) and the PHP
     462         * `ssws_show_branding` filter.
    465463         */
    466464        function renderBranding() {
  • seomedseb-smart-search/trunk/changelog-full.txt

    r3833782 r3834588  
    55WordPress.org's readme parser truncates that section at 5000 characters
    66for the "View version details" popup.
     7
     8= 0.21.8 =
     9* Tested with WordPress 7.2 and WooCommerce 11.3.
     10* Fixed: on block themes (Twenty Twenty-Five and similar) every page with a search bar logged a JavaScript SyntaxError. A spare copy of the script was printed inline and WordPress's typography filter mangled it. Block themes now get the normal script only; page builders still get the inline copy they need.
     11* Changed: the "Sponsored by Smart Search" line under the results is now off unless you turn it on (Autocomplete tab), as WordPress.org requires for credits on the public site. Sites that had it on from the old default have it switched off once on update.
    712
    813= 0.21.7 =
  • seomedseb-smart-search/trunk/includes/class-ssws-admin-page.php

    r3833759 r3834588  
    10121012                } );
    10131013                $this->field_row( __( 'Show "Sponsored by" footer', 'seomedseb-smart-search' ), function () use ( $s ) {
    1014                         $this->checkbox( 'show_branding', $s['show_branding'], __( 'A small "Sponsored by Smart Search" line at the bottom of the results dropdown. This build is free with no ads or upsells, so it\'s on by default — turn it off any time, no code required.', 'seomedseb-smart-search' ) );
     1014                        $this->checkbox( 'show_branding', $s['show_branding'], __( 'A small "Sponsored by Smart Search" line at the bottom of the results dropdown. Off unless you turn it on — it is a thank-you, never a requirement, and the plugin works exactly the same either way.', 'seomedseb-smart-search' ) );
    10151015                } );
    10161016
  • seomedseb-smart-search/trunk/includes/class-ssws-frontend.php

    r3832632 r3834588  
    3535                add_filter( 'wp_nav_menu_items', 'do_shortcode' );
    3636                add_filter( 'walker_nav_menu_start_el', 'do_shortcode' );
     37
     38                // Last in line, so it sees the template WordPress will actually load
     39                // after every theme and builder has had its say. See enqueue_now().
     40                add_filter( 'template_include', array( $this, 'note_template' ), PHP_INT_MAX );
     41        }
     42
     43        /**
     44         * Set when the request renders through core's block template canvas.
     45         *
     46         * @var bool
     47         */
     48        private static $block_canvas = false;
     49
     50        /**
     51         * Remember whether the page is drawn by a block theme's template canvas.
     52         *
     53         * @param string $template Template file about to be loaded.
     54         * @return string Unchanged.
     55         */
     56        public function note_template( $template ) {
     57                self::$block_canvas = is_string( $template )
     58                        && wp_normalize_path( $template ) === wp_normalize_path( ABSPATH . WPINC . '/template-canvas.php' );
     59
     60                return $template;
    3761        }
    3862
    … …  
    160184                        'features'  => SSWS_Features::frontend_data(),
    161185                        // A small "Sponsored by Smart Search" footer in the dropdown.
    162                         // This build is 100% free, so it's on by default. Admins can
    163                         // turn it off from the Autocomplete tab (added after a shop
    164                         // owner needed it gone for their own store-policy reasons);
    165                         // the filter still exists underneath for a future Pro add-on
    166                         // or a developer who'd rather control it from code.
     186                        // Off unless the shop owner ticks it on the Autocomplete tab:
     187                        // WordPress.org guideline 10 requires credits on the public
     188                        // site to be opt-in. The filter can still switch it off from
     189                        // code.
    167190                        'branding'  => array(
    168191                                'show' => ! empty( $autocomplete['show_branding'] ) && (bool) apply_filters( 'ssws_show_branding', true ),
    … …  
    226249                // never again at the mercy of whether some builder's rendering
    227250                // pipeline happens to line up with wp_head.
     251                //
     252                // One case is left out: a block theme's template canvas. Core renders
     253                // the whole template there before wp_head() precisely so that blocks
     254                // can enqueue, so the normal path above is guaranteed to work. And
     255                // the copy did harm there: the canvas runs wptexturize() over the
     256                // rendered template, which turns `&&` in the inline script into
     257                // `&#038;&#038;` once the script contains a `<` — a SyntaxError on
     258                // every page that carried a bar. A builder that replaces the template
     259                // is not on the canvas, so it keeps the copy it needs.
     260                if ( self::$block_canvas && ! did_action( 'wp_footer' ) && ! wp_doing_ajax() ) {
     261                        return '';
     262                }
     263
    228264                if ( ! self::$inline_fallback_printed ) {
    229265                        self::$inline_fallback_printed = true;
  • seomedseb-smart-search/trunk/includes/class-ssws-settings.php

    r3833759 r3834588  
    112112                                'show_badges'           => true, // out of stock / backorder / sale badges
    113113                                'show_add_to_cart'      => true, // quick add-to-cart in the details panel
    114                                 'show_branding'         => true, // "Sponsored by Smart Search" footer
     114                                'show_branding'         => false, // "Sponsored by Smart Search" footer — opt-in (plugin guideline 10)
    115115                        ),
    116116                        'search_config' => array(
  • seomedseb-smart-search/trunk/readme.txt

    r3833782 r3834588  
    33Tags: woocommerce, search, ajax search, autocomplete, product search
    44Requires at least: 6.0
    5 Tested up to: 7.1
     5Tested up to: 7.2
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 0.21.7
     8Stable tag: 0.21.8
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free — no premium tier.
     12A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free.
    1313
    1414== Description ==
    … …  
    19192. **A relevance engine with typo tolerance built in.** Search runs against a dedicated, optimized index table (not the slow default WordPress search), with fuzzy/SOUNDEX fallback matching so misspelled searches still find the right product.
    2020
    21 Every feature in this plugin — including the search engine, the full Design tab, analytics, and the indexer — is free. There is no "Pro" upsell built into this version.
     21Every feature in this plugin — including the search engine, the full Design tab, analytics, and the indexer — is free. There is no "Pro" version and no upsell.
    2222
    2323= Key features =
    … …  
    5656
    5757= Is this really free? =
    58 Yes. Every feature described above is included at no cost. A future paid tier may exist someday, but it is a separate, later decision and does not affect this version.
     58Yes. Every feature described above is included at no cost, with no paid version, no upsells and no ads.
    5959
    6060= Does it work with variable products? =
    … …  
    6969
    7070== Changelog ==
     71
     72= 0.21.8 =
     73* Tested with WordPress 7.2 and WooCommerce 11.3.
     74* Fixed: on block themes (Twenty Twenty-Five and similar) every page with a search bar logged a JavaScript SyntaxError. A spare copy of the script was printed inline and WordPress's typography filter mangled it. Block themes now get the normal script only; page builders still get the inline copy they need.
     75* Changed: the "Sponsored by Smart Search" line under the results is now off unless you turn it on (Autocomplete tab), as WordPress.org requires for credits on the public site. Sites that had it on from the old default have it switched off once on update.
    7176
    7277= 0.21.7 =
  • seomedseb-smart-search/trunk/seomedseb-smart-search.php

    r3833782 r3834588  
    44 * Plugin URI:         https://seomedseb.dk/plugins/smart-search-for-woocommerce/
    55 * Description:        A fully customizable AJAX search & autocomplete plugin for WooCommerce, with deep design customization, typo-tolerant search, and a foundation for AI-powered semantic search. 100% free.
    6  * Version:            0.21.7
     6 * Version:            0.21.8
    77 * Requires at least:  6.0
    88 * Requires PHP:       7.4
    99 * Requires Plugins:   woocommerce
    1010 * WC requires at least: 6.0
     11 * WC tested up to:     11.3
    1112 * Author:             SEOmedSEB
    1213 * License:            GPL v2 or later
    … …  
    2324 * Core constants.
    2425 */
    25 define( 'SSWS_VERSION', '0.21.7' );
     26define( 'SSWS_VERSION', '0.21.8' );
    2627define( 'SSWS_FILE', __FILE__ );
    2728define( 'SSWS_PATH', plugin_dir_path( __FILE__ ) );
    … …  
    271272        }
    272273
     274        // 0.21.8 made the "Sponsored by" footer opt-in (WordPress.org plugin
     275        // guideline 10: credits on the public site must be off until the site
     276        // owner turns them on). Up to now the box came ticked, so a stored
     277        // "on" is the old default rather than a choice anyone made. Clear it
     278        // once; whoever wants the line back ticks the box again.
     279        if ( version_compare( $stored, '0.21.8', '<' ) && version_compare( $stored, '0', '>' ) ) {
     280                $autocomplete = SSWS_Settings::group( 'autocomplete' );
     281                if ( ! empty( $autocomplete['show_branding'] ) ) {
     282                        $autocomplete['show_branding'] = false;
     283                        SSWS_Settings::update_group( 'autocomplete', $autocomplete );
     284                }
     285        }
     286
    273287        // New/changed columns mean the existing rows are incomplete (an upgraded
    274288        // table's parent_id/product_type default to 0/'simple' for every row that
Note: See TracChangeset for help on using the changeset viewer.