Changeset 3443721
- Timestamp:
- 01/21/2026 03:07:19 AM (2 months ago)
- Location:
- zero-spam/trunk
- Files:
-
- 3 edited
-
modules/class-zerospam.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wordpress-zero-spam.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zero-spam/trunk/modules/class-zerospam.php
r3443488 r3443721 361 361 } 362 362 363 // Encode email_details as JSON string (API expects JSON, not array). 364 $report_details['email_details'] = wp_json_encode( $report_details['email_details'] ); 365 366 // Append global data and submit the email report. 367 self::remote_request( $endpoint, [ 'body' => [ 'data' => array_merge( $report_details, $global_data ) ] ] ); 363 // Encode email_details as JSON string (API expects JSON, not array). 364 $report_details['email_details'] = wp_json_encode( $report_details['email_details'] ); 365 366 // Add report_ip (the IP being reported for email reports). 367 $report_details['report_ip'] = $ip; 368 369 // Append global data and submit the email report. 370 $email_query_params = array_merge( $report_details, $global_data ); 371 $email_endpoint = ZEROSPAM_URL . 'wp-json/v6/report/'; 372 $email_endpoint = add_query_arg( array( 'data' => $email_query_params ), $email_endpoint ); 373 self::remote_request( $email_endpoint ); 368 374 } 369 375 -
zero-spam/trunk/readme.txt
r3443488 r3443721 6 6 Tested up to: 6.9 7 7 Requires PHP: 8.2 8 Stable tag: 5.6. 08 Stable tag: 5.6.1 9 9 License: GPL v2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 107 107 108 108 == Changelog == 109 110 = v5.6.1 = 111 112 * fix(api): corrected email report submission to use GET method with query parameters (was incorrectly using POST with body) 113 * fix(api): email reports now properly include report_ip parameter 114 * fix(api): fixed variable reuse bug by using separate $email_endpoint variable for email reports 109 115 110 116 = v5.6.0 = -
zero-spam/trunk/wordpress-zero-spam.php
r3443488 r3443721 16 16 * Plugin URI: https://wordpress.com/plugins/zero-spam/ 17 17 * Description: Tired of all the ineffective WordPress anti-spam & security plugins? Zero Spam for WordPress makes blocking spam & malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong> 18 * Version: 5.6. 018 * Version: 5.6.1 19 19 * Requires at least: 6.9 20 20 * Requires PHP: 8.2 … … 34 34 define( 'ZEROSPAM_PATH', plugin_dir_path( ZEROSPAM ) ); 35 35 define( 'ZEROSPAM_PLUGIN_BASE', plugin_basename( ZEROSPAM ) ); 36 define( 'ZEROSPAM_VERSION', '5.6. 0' );36 define( 'ZEROSPAM_VERSION', '5.6.1' ); 37 37 38 38 if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.