Plugin Directory

Changeset 3019568

Timestamp:
01/09/2024 09:52:02 PM (6 months ago)
Author:
cfinke
Message:

Ensure that the appropriate input field name prefix is used when including the behavioral data fields in contact forms' API requests.

Location:
akismet/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/_inc/akismet-frontend.js

    r2803597 r3019568  
    8181                var input_fields = {
    8282                    // When did the user begin entering any input?
    83                     'ak_bib': input_begin,
     83                    'bib': input_begin,
    8484
    8585                    // When was the form submitted?
    86                     'ak_bfs': Date.now(),
     86                    'bfs': Date.now(),
    8787
    8888                    // How many keypresses did they make?
    89                     'ak_bkpc': keypresses.length,
     89                    'bkpc': keypresses.length,
    9090
    9191                    // How quickly did they press a sample of keys, and how long between them?
    92                     'ak_bkp': ak_bkp,
     92                    'bkp': ak_bkp,
    9393
    9494                    // How quickly did they click the mouse, and how long between clicks?
    95                     'ak_bmc': ak_bmc,
     95                    'bmc': ak_bmc,
    9696
    9797                    // How many mouseclicks did they make?
    98                     'ak_bmcc': mouseclicks.length,
     98                    'bmcc': mouseclicks.length,
    9999
    100100                    // When did they press modifier keys (like Shift or Capslock)?
    101                     'ak_bmk': modifierKeys.join( ';' ),
     101                    'bmk': modifierKeys.join( ';' ),
    102102
    103103                    // When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back
    104                     'ak_bck': correctionKeys.join( ';' ),
     104                    'bck': correctionKeys.join( ';' ),
    105105
    106106                    // How many times did they move the mouse?
    107                     'ak_bmmc': mousemoves.length,
     107                    'bmmc': mousemoves.length,
    108108
    109109                    // How many times did they move around using a touchscreen?
    110                     'ak_btmc': touchmoveCount,
     110                    'btmc': touchmoveCount,
    111111
    112112                    // How many times did they scroll?
    113                     'ak_bsc': scrollCount,
     113                    'bsc': scrollCount,
    114114
    115115                    // How quickly did they perform touch events, and how long between them?
    116                     'ak_bte': ak_bte,
     116                    'bte': ak_bte,
    117117
    118118                    // How many touch events were there?
    119                     'ak_btec' : touchEvents.length,
     119                    'btec' : touchEvents.length,
    120120
    121121                    // How quickly did they move the mouse, and how long between moves?
    122                     'ak_bmm' : ak_bmm
     122                    'bmm' : ak_bmm
    123123                };
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
    124140
    125141                for ( var field_name in input_fields ) {
    126142                    var field = document.createElement( 'input' );
    127143                    field.setAttribute( 'type', 'hidden' );
    128                     field.setAttribute( 'name', field_name );
     144                    field.setAttribute( 'name', field_name );
    129145                    field.setAttribute( 'value', input_fields[ field_name ] );
    130146                    this.appendChild( field );
  • akismet/trunk/akismet.php

    r3016639 r3019568  
    77Plugin URI: https://akismet.com/
    88Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
    9 Version: 5.3.1a6
     9Version: 5.3.1a
    1010Requires at least: 5.8
    1111Requires PHP: 5.6.20
     
    4040}
    4141
    42 define( 'AKISMET_VERSION', '5.3.1a6' );
     42define( 'AKISMET_VERSION', '5.3.1a' );
    4343define( 'AKISMET__MINIMUM_WP_VERSION', '5.8' );
    4444define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • akismet/trunk/class.akismet.php

    r3016639 r3019568  
    14631463        }
    14641464
    1465         $fields .= '<p style="display: none !important;">';
     1465        $fields .= '<p style="display: none !important;">';
    14661466        $fields .= '<label>&#916;<textarea name="' . $prefix . 'hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label>';
    14671467
  • akismet/trunk/readme.txt

    r3016639 r3019568  
    4040* Fix a minor error that occurs when another plugin removes all comment actions from the dashboard.
    4141* Add the akismet_request_args filter to allow request args in Akismet API requests to be filtered.
     42
    4243
    4344= 5.3 =
Note: See TracChangeset for help on using the changeset viewer.