Plugin Directory

Changeset 3443721


Ignore:
Timestamp:
01/21/2026 03:07:19 AM (2 months ago)
Author:
bmarshall511
Message:

Update trunk to version 5.6.1

Location:
zero-spam/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zero-spam/trunk/modules/class-zerospam.php

    r3443488 r3443721  
    361361            }
    362362
    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 );
    368374        }
    369375
  • zero-spam/trunk/readme.txt

    r3443488 r3443721  
    66Tested up to: 6.9
    77Requires PHP: 8.2
    8 Stable tag: 5.6.0
     8Stable tag: 5.6.1
    99License: GPL v2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    107107
    108108== 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
    109115
    110116= v5.6.0 =
  • zero-spam/trunk/wordpress-zero-spam.php

    r3443488 r3443721  
    1616 * Plugin URI:        https://wordpress.com/plugins/zero-spam/
    1717 * Description:       Tired of all the ineffective WordPress anti-spam & security plugins? Zero Spam for WordPress makes blocking spam &amp; malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong>
    18  * Version:           5.6.0
     18 * Version:           5.6.1
    1919 * Requires at least: 6.9
    2020 * Requires PHP:      8.2
     
    3434define( 'ZEROSPAM_PATH', plugin_dir_path( ZEROSPAM ) );
    3535define( 'ZEROSPAM_PLUGIN_BASE', plugin_basename( ZEROSPAM ) );
    36 define( 'ZEROSPAM_VERSION', '5.6.0' );
     36define( 'ZEROSPAM_VERSION', '5.6.1' );
    3737
    3838if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
Note: See TracChangeset for help on using the changeset viewer.