Plugin Directory

Changeset 3227721


Ignore:
Timestamp:
01/23/2025 08:32:45 PM (12 months ago)
Author:
apos37
Message:

1.0.4.4

  • Fix: Spam list causing issues on name fields
Location:
gf-tools
Files:
55 added
3 edited

Legend:

Unmodified
Added
Removed
  • gf-tools/trunk/gf-tools.php

    r3226931 r3227721  
    44 * Plugin URI:          https://apos37.com/wordpress-advanced-tools-for-gravity-forms/
    55 * Description:         Unlock advanced tools to supercharge your Gravity Forms experience with enhanced features and streamlined management.
    6  * Version:             1.0.4.3
     6 * Version:             1.0.4.4
    77 * Requires at least:   5.9.0
    88 * Tested up to:        6.7.1
     
    2626define( 'GFADVTOOLS_TEXTDOMAIN', 'gf-tools' );
    2727define( 'GFADVTOOLS_DISCORD_SUPPORT_URL', 'https://discord.gg/3HnzNEJVnR' );
    28 define( 'GFADVTOOLS_VERSION', '1.0.4.3' );
     28define( 'GFADVTOOLS_VERSION', '1.0.4.4' );
    2929define( 'GFADVTOOLS_ADMIN_INCLUDES_URL', trailingslashit( ABSPATH.str_replace( site_url(), '', admin_url( 'includes/' ) ) ) );  // /abspath/.../public_html/wp-admin/includes/
    3030define( 'GFADVTOOLS_PLUGIN_ROOT', plugin_dir_path( __FILE__ ) );                                                                // /home/.../public_html/wp-content/plugins/gf-tools/
  • gf-tools/trunk/includes/class-spam.php

    r3226931 r3227721  
    13411341   
    13421342        // If the field is of type email, text, or textarea
    1343         if ( in_array( $field->type, [ 'name', 'email', 'text', 'textarea' ] ) ) {
     1343        if ( in_array( $field->type, [ 'email', 'text', 'textarea' ] ) ) {
    13441344
    13451345            // $field_id = $field->id;
     
    13851385
    13861386                    if ( preg_match( $pattern, $value ) && !$allowed ) {
    1387                         $result['is_valid'] = false;
    1388                         $result['message'] = "Keyword '{$keyword}' is not allowed.";
     1387                        $result[ 'is_valid' ] = false;
     1388                        $result[ 'message' ] = "Keyword '{$keyword}' is not allowed.";
    13891389                        return $result;
    13901390                    }
     
    14981498
    14991499        // Process each field
    1500         $field_types_to_filter = [ 'name', 'email', 'text', 'textarea' ];
     1500        $field_types_to_filter = [ 'email', 'text', 'textarea' ];
    15011501        foreach ( $form[ 'fields' ] as $field ) {
    15021502
  • gf-tools/trunk/readme.txt

    r3226931 r3227721  
    55Requires PHP: 7.4
    66Tested up to: 6.7.1
    7 Stable tag: 1.0.4.3
     7Stable tag: 1.0.4.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    106106
    107107== Changelog ==
     108= 1.0.4.4 =
     109* Fix: Spam list causing issues on name fields
     110
    108111= 1.0.4.3 =
    109112* Update: Added plugin option to disable word boundaries in spam filtering
Note: See TracChangeset for help on using the changeset viewer.