| @@ -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 | } |