PluginProbe
Filter Everything — WordPress & WooCommerce Filters / 1.9.7
Filter Everything — WordPress & WooCommerce Filters v1.9.7
1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 All 52 releases
← All changes | src/Settings/DefaultSettings.php +13 -0 1.9.2.11.9.7 View file →
@@ -49,7 +49,20 @@
49 49 // PRO default options
50 50 if( defined('FLRT_FILTERS_PRO') && FLRT_FILTERS_PRO ){
51 51 $defaultOptions['mobile_filter_settings'] = 'show_bottom_widget';
52 52 }
53 +
54 + // Free default options (fresh installs only — activate() seeds this array
55 + // once and never touches an existing wpc_filter_settings). Filter pages are
56 + // noindex in free by design, so hiding the filter links from crawlers and
57 + // keeping crawlers off the filter URLs via robots.txt costs nothing in
58 + // search visibility and spares new sites the crawler-trap load out of the
59 + // box. Existing installs keep their behaviour until the options are
60 + // enabled — the 1.9.6 admin notice points them there.
61 + if( ! defined('FLRT_FILTERS_PRO') ){
62 + $defaultOptions['disable_filter_links_for_bots'] = 'on';
63 + $defaultOptions['robots_txt_block_filters'] = 'on';
64 + }
65 +
53 66 return $defaultOptions;
54 67 }
55 68 }