Changeset 3441188
- Timestamp:
- 01/16/2026 06:00:43 PM (3 months ago)
- Location:
- zero-spam
- Files:
-
- 6 edited
- 1 copied
-
tags/5.5.9 (copied) (copied from zero-spam/trunk)
-
tags/5.5.9/modules/class-zerospam.php (modified) (2 diffs)
-
tags/5.5.9/readme.txt (modified) (2 diffs)
-
tags/5.5.9/wordpress-zero-spam.php (modified) (2 diffs)
-
trunk/modules/class-zerospam.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wordpress-zero-spam.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zero-spam/tags/5.5.9/modules/class-zerospam.php
r3434746 r3441188 231 231 $api_data['reporter_email'] = sanitize_email( get_bloginfo( 'admin_email' ) ); 232 232 $api_data['app_key'] = \ZeroSpam\Core\Utilities::clean_domain( esc_url( site_url() ) ); 233 $api_data['app_type'] = 'WordPress'; 234 $api_data['app_details'] = array( 235 'app_version' => sanitize_text_field( get_bloginfo( 'version' ) ), 236 'app_type_version' => sanitize_text_field( ZEROSPAM_VERSION ), 237 'app_language' => sanitize_text_field( strtolower( get_bloginfo( 'language' ) ) ), 238 'app_email' => sanitize_email( get_bloginfo( 'admin_email' ) ), 239 'app_name' => sanitize_text_field( get_bloginfo( 'name' ) ), 240 'app_desc' => sanitize_text_field( get_bloginfo( 'description' ) ), 233 $api_data['app_type'] = 'wordpress'; 234 $api_data['app_details'] = wp_json_encode( 235 array( 236 'app_version' => sanitize_text_field( get_bloginfo( 'version' ) ), 237 'app_type_version' => sanitize_text_field( ZEROSPAM_VERSION ), 238 'app_language' => sanitize_text_field( strtolower( get_bloginfo( 'language' ) ) ), 239 'app_email' => sanitize_email( get_bloginfo( 'admin_email' ) ), 240 'app_name' => sanitize_text_field( get_bloginfo( 'name' ) ), 241 'app_desc' => sanitize_text_field( get_bloginfo( 'description' ) ), 242 ) 241 243 ); 242 244 … … 357 359 } 358 360 361 // Encode email_details as JSON string (API expects JSON, not array). 362 $report_details['email_details'] = wp_json_encode( $report_details['email_details'] ); 363 359 364 // Append global data and submit the email report. 360 365 self::remote_request( $endpoint, [ 'body' => [ 'data' => array_merge( $report_details, $global_data ) ] ] ); -
zero-spam/tags/5.5.9/readme.txt
r3434746 r3441188 6 6 Tested up to: 6.9 7 7 Requires PHP: 8.2 8 Stable tag: 5.5. 88 Stable tag: 5.5.9 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.5.9 = 111 112 * fix(api): corrected app_type case mismatch and app_details/email_details encoding 109 113 110 114 = v5.5.8 = -
zero-spam/tags/5.5.9/wordpress-zero-spam.php
r3434753 r3441188 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.5. 818 * Version: 5.5.9 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.5. 8' );36 define( 'ZEROSPAM_VERSION', '5.5.9' ); 37 37 38 38 if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) { -
zero-spam/trunk/modules/class-zerospam.php
r3434746 r3441188 231 231 $api_data['reporter_email'] = sanitize_email( get_bloginfo( 'admin_email' ) ); 232 232 $api_data['app_key'] = \ZeroSpam\Core\Utilities::clean_domain( esc_url( site_url() ) ); 233 $api_data['app_type'] = 'WordPress'; 234 $api_data['app_details'] = array( 235 'app_version' => sanitize_text_field( get_bloginfo( 'version' ) ), 236 'app_type_version' => sanitize_text_field( ZEROSPAM_VERSION ), 237 'app_language' => sanitize_text_field( strtolower( get_bloginfo( 'language' ) ) ), 238 'app_email' => sanitize_email( get_bloginfo( 'admin_email' ) ), 239 'app_name' => sanitize_text_field( get_bloginfo( 'name' ) ), 240 'app_desc' => sanitize_text_field( get_bloginfo( 'description' ) ), 233 $api_data['app_type'] = 'wordpress'; 234 $api_data['app_details'] = wp_json_encode( 235 array( 236 'app_version' => sanitize_text_field( get_bloginfo( 'version' ) ), 237 'app_type_version' => sanitize_text_field( ZEROSPAM_VERSION ), 238 'app_language' => sanitize_text_field( strtolower( get_bloginfo( 'language' ) ) ), 239 'app_email' => sanitize_email( get_bloginfo( 'admin_email' ) ), 240 'app_name' => sanitize_text_field( get_bloginfo( 'name' ) ), 241 'app_desc' => sanitize_text_field( get_bloginfo( 'description' ) ), 242 ) 241 243 ); 242 244 … … 357 359 } 358 360 361 // Encode email_details as JSON string (API expects JSON, not array). 362 $report_details['email_details'] = wp_json_encode( $report_details['email_details'] ); 363 359 364 // Append global data and submit the email report. 360 365 self::remote_request( $endpoint, [ 'body' => [ 'data' => array_merge( $report_details, $global_data ) ] ] ); -
zero-spam/trunk/readme.txt
r3434746 r3441188 6 6 Tested up to: 6.9 7 7 Requires PHP: 8.2 8 Stable tag: 5.5. 88 Stable tag: 5.5.9 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.5.9 = 111 112 * fix(api): corrected app_type case mismatch and app_details/email_details encoding 109 113 110 114 = v5.5.8 = -
zero-spam/trunk/wordpress-zero-spam.php
r3434753 r3441188 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.5. 818 * Version: 5.5.9 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.5. 8' );36 define( 'ZEROSPAM_VERSION', '5.5.9' ); 37 37 38 38 if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.