Changeset 3834588
- Timestamp:
- 11/30/2026 09:05:07 AM (61 minutes ago)
- Location:
- seomedseb-smart-search
- Files:
-
- 14 edited
- 1 copied
-
tags/0.21.8 (copied) (copied from seomedseb-smart-search/trunk )
-
tags/0.21.8/assets/js/frontend.js (modified) (1 diff)
-
tags/0.21.8/changelog-full.txt (modified) (1 diff)
-
tags/0.21.8/includes/class-ssws-admin-page.php (modified) (1 diff)
-
tags/0.21.8/includes/class-ssws-frontend.php (modified) (3 diffs)
-
tags/0.21.8/includes/class-ssws-settings.php (modified) (1 diff)
-
tags/0.21.8/readme.txt (modified) (4 diffs)
-
tags/0.21.8/seomedseb-smart-search.php (modified) (3 diffs)
-
trunk/assets/js/frontend.js (modified) (1 diff)
-
trunk/changelog-full.txt (modified) (1 diff)
-
trunk/includes/class-ssws-admin-page.php (modified) (1 diff)
-
trunk/includes/class-ssws-frontend.php (modified) (3 diffs)
-
trunk/includes/class-ssws-settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/seomedseb-smart-search.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seomedseb-smart-search/tags/0.21.8/assets/js/frontend.js
r3833782 r3834588 458 458 /** 459 459 * 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. 465 463 */ 466 464 function renderBranding() { -
seomedseb-smart-search/tags/0.21.8/changelog-full.txt
r3833782 r3834588 5 5 WordPress.org's readme parser truncates that section at 5000 characters 6 6 for 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. 7 12 8 13 = 0.21.7 = -
seomedseb-smart-search/tags/0.21.8/includes/class-ssws-admin-page.php
r3833759 r3834588 1012 1012 } ); 1013 1013 $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' ) ); 1015 1015 } ); 1016 1016 -
seomedseb-smart-search/tags/0.21.8/includes/class-ssws-frontend.php
r3832632 r3834588 35 35 add_filter( 'wp_nav_menu_items', 'do_shortcode' ); 36 36 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; 37 61 } 38 62 … … 160 184 'features' => SSWS_Features::frontend_data(), 161 185 // 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. 167 190 'branding' => array( 168 191 'show' => ! empty( $autocomplete['show_branding'] ) && (bool) apply_filters( 'ssws_show_branding', true ), … … 226 249 // never again at the mercy of whether some builder's rendering 227 250 // 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 // `&&` 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 228 264 if ( ! self::$inline_fallback_printed ) { 229 265 self::$inline_fallback_printed = true; -
seomedseb-smart-search/tags/0.21.8/includes/class-ssws-settings.php
r3833759 r3834588 112 112 'show_badges' => true, // out of stock / backorder / sale badges 113 113 'show_add_to_cart' => true, // quick add-to-cart in the details panel 114 'show_branding' => true, // "Sponsored by Smart Search" footer114 'show_branding' => false, // "Sponsored by Smart Search" footer — opt-in (plugin guideline 10) 115 115 ), 116 116 'search_config' => array( -
seomedseb-smart-search/tags/0.21.8/readme.txt
r3833782 r3834588 3 3 Tags: woocommerce, search, ajax search, autocomplete, product search 4 4 Requires at least: 6.0 5 Tested up to: 7. 15 Tested up to: 7.2 6 6 Requires PHP: 7.4 7 7 Requires Plugins: woocommerce 8 Stable tag: 0.21. 78 Stable tag: 0.21.8 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free — no premium tier.12 A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free. 13 13 14 14 == Description == … … 19 19 2. **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. 20 20 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.21 Every 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. 22 22 23 23 = Key features = … … 56 56 57 57 = 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.58 Yes. Every feature described above is included at no cost, with no paid version, no upsells and no ads. 59 59 60 60 = Does it work with variable products? = … … 69 69 70 70 == 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. 71 76 72 77 = 0.21.7 = -
seomedseb-smart-search/tags/0.21.8/seomedseb-smart-search.php
r3833782 r3834588 4 4 * Plugin URI: https://seomedseb.dk/plugins/smart-search-for-woocommerce/ 5 5 * 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. 76 * Version: 0.21.8 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 9 9 * Requires Plugins: woocommerce 10 10 * WC requires at least: 6.0 11 * WC tested up to: 11.3 11 12 * Author: SEOmedSEB 12 13 * License: GPL v2 or later … … 23 24 * Core constants. 24 25 */ 25 define( 'SSWS_VERSION', '0.21. 7' );26 define( 'SSWS_VERSION', '0.21.8' ); 26 27 define( 'SSWS_FILE', __FILE__ ); 27 28 define( 'SSWS_PATH', plugin_dir_path( __FILE__ ) ); … … 271 272 } 272 273 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 273 287 // New/changed columns mean the existing rows are incomplete (an upgraded 274 288 // table's parent_id/product_type default to 0/'simple' for every row that -
seomedseb-smart-search/trunk/assets/js/frontend.js
r3833782 r3834588 458 458 /** 459 459 * 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. 465 463 */ 466 464 function renderBranding() { -
seomedseb-smart-search/trunk/changelog-full.txt
r3833782 r3834588 5 5 WordPress.org's readme parser truncates that section at 5000 characters 6 6 for 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. 7 12 8 13 = 0.21.7 = -
seomedseb-smart-search/trunk/includes/class-ssws-admin-page.php
r3833759 r3834588 1012 1012 } ); 1013 1013 $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' ) ); 1015 1015 } ); 1016 1016 -
seomedseb-smart-search/trunk/includes/class-ssws-frontend.php
r3832632 r3834588 35 35 add_filter( 'wp_nav_menu_items', 'do_shortcode' ); 36 36 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; 37 61 } 38 62 … … 160 184 'features' => SSWS_Features::frontend_data(), 161 185 // 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. 167 190 'branding' => array( 168 191 'show' => ! empty( $autocomplete['show_branding'] ) && (bool) apply_filters( 'ssws_show_branding', true ), … … 226 249 // never again at the mercy of whether some builder's rendering 227 250 // 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 // `&&` 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 228 264 if ( ! self::$inline_fallback_printed ) { 229 265 self::$inline_fallback_printed = true; -
seomedseb-smart-search/trunk/includes/class-ssws-settings.php
r3833759 r3834588 112 112 'show_badges' => true, // out of stock / backorder / sale badges 113 113 'show_add_to_cart' => true, // quick add-to-cart in the details panel 114 'show_branding' => true, // "Sponsored by Smart Search" footer114 'show_branding' => false, // "Sponsored by Smart Search" footer — opt-in (plugin guideline 10) 115 115 ), 116 116 'search_config' => array( -
seomedseb-smart-search/trunk/readme.txt
r3833782 r3834588 3 3 Tags: woocommerce, search, ajax search, autocomplete, product search 4 4 Requires at least: 6.0 5 Tested up to: 7. 15 Tested up to: 7.2 6 6 Requires PHP: 7.4 7 7 Requires Plugins: woocommerce 8 Stable tag: 0.21. 78 Stable tag: 0.21.8 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free — no premium tier.12 A modern, fully customizable AJAX search & autocomplete plugin for WooCommerce. 100% free. 13 13 14 14 == Description == … … 19 19 2. **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. 20 20 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.21 Every 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. 22 22 23 23 = Key features = … … 56 56 57 57 = 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.58 Yes. Every feature described above is included at no cost, with no paid version, no upsells and no ads. 59 59 60 60 = Does it work with variable products? = … … 69 69 70 70 == 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. 71 76 72 77 = 0.21.7 = -
seomedseb-smart-search/trunk/seomedseb-smart-search.php
r3833782 r3834588 4 4 * Plugin URI: https://seomedseb.dk/plugins/smart-search-for-woocommerce/ 5 5 * 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. 76 * Version: 0.21.8 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 9 9 * Requires Plugins: woocommerce 10 10 * WC requires at least: 6.0 11 * WC tested up to: 11.3 11 12 * Author: SEOmedSEB 12 13 * License: GPL v2 or later … … 23 24 * Core constants. 24 25 */ 25 define( 'SSWS_VERSION', '0.21. 7' );26 define( 'SSWS_VERSION', '0.21.8' ); 26 27 define( 'SSWS_FILE', __FILE__ ); 27 28 define( 'SSWS_PATH', plugin_dir_path( __FILE__ ) ); … … 271 272 } 272 273 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 273 287 // New/changed columns mean the existing rows are incomplete (an upgraded 274 288 // table's parent_id/product_type default to 0/'simple' for every row that
Note:
See TracChangeset
for help on using the changeset viewer.