Plugin Directory

Changeset 3439714


Ignore:
Timestamp:
01/14/2026 04:57:39 PM (2 months ago)
Author:
samsonovteamwork
Message:

Updated to ver 8.2.4

Location:
website-llms-txt
Files:
5 edited
13 copied

Legend:

Unmodified
Added
Removed
  • website-llms-txt/tags/8.2.4/README.txt

    r3383930 r3439714  
    55Tested up to: 6.8.3
    66Requires PHP: 7.2
    7 Stable tag: 8.2.3
     7Stable tag: 8.2.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9595== Changelog ==
    9696
     97= 8.2.4 =
     98
     99🛠 Improvement: Gravity Forms exclusion control
     100
     101• Added an option to **exclude Gravity Forms form fields from the generated llms.txt output.
     102• When disabled, all Gravity Forms markup (`<form id="gform_...">`, wrappers, and fields) is completely removed before file generation.
     103• Prevents unintended exposure of form structure and field labels in llms.txt.
     104
    97105= 8.2.3 =
    98106
  • website-llms-txt/tags/8.2.4/admin/admin-page.php

    r3383930 r3439714  
    184184                        </label>
    185185                    </p>
     186                    <p>
     187                        <label>
     188                            <input type="checkbox"
     189                                   name="llms_generator_settings[gform_include]"
     190                                   value="1"
     191                                <?php checked(!empty($settings['gform_include'])); ?>>
     192                            <?php esc_html_e('Include Gravity Forms form fields in llms.txt', 'website-llms-txt'); ?>
     193                        </label>
     194                    </p>
    186195                    <?php if(!empty($settings)): ?>
    187196                        <?php foreach($settings as $key => $value): ?>
    188                             <?php if(in_array($key, ['post_types', 'max_posts', 'max_words', 'include_meta', 'include_excerpts', 'detailed_content', 'include_taxonomies'])) continue ?>
     197                            <?php if(in_array($key, ['post_types', 'max_posts', 'max_words', 'include_meta', 'include_excerpts', 'detailed_content', 'include_taxonomies', 'gform_include'])) continue ?>
    189198                            <?php if(is_array($value)): ?>
    190199                                <?php foreach($value as $second_key => $second_value): ?>
  • website-llms-txt/tags/8.2.4/includes/class-llms-core.php

    r3372420 r3439714  
    167167                    'include_excerpts' => false,
    168168                    'include_taxonomies' => false,
     169                    'gform_include' => false,
    169170                    'update_frequency' => 'immediate',
    170171                    'need_check_option' => true,
     
    226227        $clean['include_excerpts'] = !empty($value['include_excerpts']);
    227228        $clean['include_taxonomies'] = !empty($value['include_taxonomies']);
     229        $clean['gform_include'] = !empty($value['gform_include']);
    228230        $clean['llms_txt_title'] = !isset($value['llms_txt_title']) ? '' : $value['llms_txt_title'];
    229231        $clean['llms_txt_description'] = !isset($value['llms_txt_description']) ? '' : $value['llms_txt_description'];
  • website-llms-txt/tags/8.2.4/includes/class-llms-generator.php

    r3378045 r3439714  
    3636            'need_check_option' => true,
    3737            'noindex_header' => false,
     38            'gform_include' => false,
    3839            'llms_allow_indexing' => false,
    3940            'llms_local_log_enabled' => false,
     
    428429    private function remove_shortcodes($content)
    429430    {
     431        $settings = apply_filters('get_llms_generator_settings', []);
    430432        $clean = preg_replace('/\[[^\]]+\]/', '', $content);
    431433
     434        if(!isset($settings['gform_include']) || !$settings['gform_include']) {
     435            $clean = preg_replace('/<form[^>]+id=("|\')gform_\d+("|\')[\s\S]*?<\/form>/i', '', $clean);
     436
     437            $clean = preg_replace('/<div[^>]+class=("|\')[^"\']*gform_wrapper[^"\']*("|\')[\s\S]*?<\/div>/i', '', $clean);
     438        }
     439
    432440        $clean = preg_replace('/<style\b[^>]*>.*?<\/style>/is', '', $clean);
     441        $clean = preg_replace('/<script\b[^>]*>.*?<\/script>/is', '', $clean);
    433442
    434443        $clean = preg_replace('/[\x{00A0}\x{200B}\x{200C}\x{200D}\x{FEFF}\x{202A}-\x{202E}\x{2060}]/u', ' ', $clean);
  • website-llms-txt/tags/8.2.4/website-llms-txt.php

    r3383930 r3439714  
    33 * Plugin Name: Website LLMs.txt
    44 * Description: Generates and manages an llms.txt file, a structured, AI-ready index that helps large language models like ChatGPT, Claude, and Perplexity understand your site's most important content.
    5  * Version: 8.2.3
     5 * Version: 8.2.4
    66 * Author: Ryan Howard
    77 * Author URI: https://completeseo.com/author/ryan-howard/
     
    1919
    2020// Define plugin constants
    21 define('LLMS_VERSION', '8.2.3');
     21define('LLMS_VERSION', '8.2.4');
    2222define('LLMS_PLUGIN_FILE', __FILE__);
    2323define('LLMS_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • website-llms-txt/trunk/README.txt

    r3383930 r3439714  
    55Tested up to: 6.8.3
    66Requires PHP: 7.2
    7 Stable tag: 8.2.3
     7Stable tag: 8.2.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9595== Changelog ==
    9696
     97= 8.2.4 =
     98
     99🛠 Improvement: Gravity Forms exclusion control
     100
     101• Added an option to **exclude Gravity Forms form fields from the generated llms.txt output.
     102• When disabled, all Gravity Forms markup (`<form id="gform_...">`, wrappers, and fields) is completely removed before file generation.
     103• Prevents unintended exposure of form structure and field labels in llms.txt.
     104
    97105= 8.2.3 =
    98106
  • website-llms-txt/trunk/admin/admin-page.php

    r3383930 r3439714  
    184184                        </label>
    185185                    </p>
     186                    <p>
     187                        <label>
     188                            <input type="checkbox"
     189                                   name="llms_generator_settings[gform_include]"
     190                                   value="1"
     191                                <?php checked(!empty($settings['gform_include'])); ?>>
     192                            <?php esc_html_e('Include Gravity Forms form fields in llms.txt', 'website-llms-txt'); ?>
     193                        </label>
     194                    </p>
    186195                    <?php if(!empty($settings)): ?>
    187196                        <?php foreach($settings as $key => $value): ?>
    188                             <?php if(in_array($key, ['post_types', 'max_posts', 'max_words', 'include_meta', 'include_excerpts', 'detailed_content', 'include_taxonomies'])) continue ?>
     197                            <?php if(in_array($key, ['post_types', 'max_posts', 'max_words', 'include_meta', 'include_excerpts', 'detailed_content', 'include_taxonomies', 'gform_include'])) continue ?>
    189198                            <?php if(is_array($value)): ?>
    190199                                <?php foreach($value as $second_key => $second_value): ?>
  • website-llms-txt/trunk/includes/class-llms-core.php

    r3372420 r3439714  
    167167                    'include_excerpts' => false,
    168168                    'include_taxonomies' => false,
     169                    'gform_include' => false,
    169170                    'update_frequency' => 'immediate',
    170171                    'need_check_option' => true,
     
    226227        $clean['include_excerpts'] = !empty($value['include_excerpts']);
    227228        $clean['include_taxonomies'] = !empty($value['include_taxonomies']);
     229        $clean['gform_include'] = !empty($value['gform_include']);
    228230        $clean['llms_txt_title'] = !isset($value['llms_txt_title']) ? '' : $value['llms_txt_title'];
    229231        $clean['llms_txt_description'] = !isset($value['llms_txt_description']) ? '' : $value['llms_txt_description'];
  • website-llms-txt/trunk/includes/class-llms-generator.php

    r3378045 r3439714  
    3636            'need_check_option' => true,
    3737            'noindex_header' => false,
     38            'gform_include' => false,
    3839            'llms_allow_indexing' => false,
    3940            'llms_local_log_enabled' => false,
     
    428429    private function remove_shortcodes($content)
    429430    {
     431        $settings = apply_filters('get_llms_generator_settings', []);
    430432        $clean = preg_replace('/\[[^\]]+\]/', '', $content);
    431433
     434        if(!isset($settings['gform_include']) || !$settings['gform_include']) {
     435            $clean = preg_replace('/<form[^>]+id=("|\')gform_\d+("|\')[\s\S]*?<\/form>/i', '', $clean);
     436
     437            $clean = preg_replace('/<div[^>]+class=("|\')[^"\']*gform_wrapper[^"\']*("|\')[\s\S]*?<\/div>/i', '', $clean);
     438        }
     439
    432440        $clean = preg_replace('/<style\b[^>]*>.*?<\/style>/is', '', $clean);
     441        $clean = preg_replace('/<script\b[^>]*>.*?<\/script>/is', '', $clean);
    433442
    434443        $clean = preg_replace('/[\x{00A0}\x{200B}\x{200C}\x{200D}\x{FEFF}\x{202A}-\x{202E}\x{2060}]/u', ' ', $clean);
  • website-llms-txt/trunk/website-llms-txt.php

    r3383930 r3439714  
    33 * Plugin Name: Website LLMs.txt
    44 * Description: Generates and manages an llms.txt file, a structured, AI-ready index that helps large language models like ChatGPT, Claude, and Perplexity understand your site's most important content.
    5  * Version: 8.2.3
     5 * Version: 8.2.4
    66 * Author: Ryan Howard
    77 * Author URI: https://completeseo.com/author/ryan-howard/
     
    1919
    2020// Define plugin constants
    21 define('LLMS_VERSION', '8.2.3');
     21define('LLMS_VERSION', '8.2.4');
    2222define('LLMS_PLUGIN_FILE', __FILE__);
    2323define('LLMS_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.