Changeset 3461389
- Timestamp:
- 02/14/2026 03:03:09 PM (6 weeks ago)
- Location:
- spamanvil
- Files:
-
- 12 edited
- 1 copied
-
tags/1.1.1 (copied) (copied from spamanvil/trunk)
-
tags/1.1.1/admin/class-spamanvil-admin.php (modified) (1 diff)
-
tags/1.1.1/admin/views/settings-general.php (modified) (1 diff)
-
tags/1.1.1/includes/class-spamanvil-activator.php (modified) (1 diff)
-
tags/1.1.1/readme.txt (modified) (2 diffs)
-
tags/1.1.1/spamanvil.php (modified) (2 diffs)
-
tags/1.1.1/uninstall.php (modified) (3 diffs)
-
trunk/admin/class-spamanvil-admin.php (modified) (1 diff)
-
trunk/admin/views/settings-general.php (modified) (1 diff)
-
trunk/includes/class-spamanvil-activator.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/spamanvil.php (modified) (2 diffs)
-
trunk/uninstall.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spamanvil/tags/1.1.1/admin/class-spamanvil-admin.php
r3461369 r3461389 245 245 update_option( 'spamanvil_log_retention', absint( $_POST['spamanvil_log_retention'] ?? 30 ) ); 246 246 update_option( 'spamanvil_skip_moderators', isset( $_POST['spamanvil_skip_moderators'] ) ? '1' : '0' ); 247 update_option( 'spamanvil_delete_data', isset( $_POST['spamanvil_delete_data'] ) ? '1' : '0' ); 247 248 update_option( 'spamanvil_privacy_notice', isset( $_POST['spamanvil_privacy_notice'] ) ? '1' : '0' ); 248 249 } -
spamanvil/tags/1.1.1/admin/views/settings-general.php
r3461359 r3461389 225 225 226 226 <tr> 227 <th scope="row"><?php esc_html_e( 'Delete Data on Uninstall', 'spamanvil' ); ?></th> 228 <td> 229 <label> 230 <input type="checkbox" name="spamanvil_delete_data" value="1" <?php checked( get_option( 'spamanvil_delete_data', '0' ), '1' ); ?>> 231 <?php esc_html_e( 'Delete all plugin data when the plugin is deleted', 'spamanvil' ); ?> 232 </label> 233 <p class="description"> 234 <?php esc_html_e( 'When disabled, your settings, statistics, logs, and blocked IPs are preserved if you reinstall the plugin. Enable this only if you want a complete removal.', 'spamanvil' ); ?> 235 </p> 236 </td> 237 </tr> 238 239 <tr> 227 240 <th scope="row"><?php esc_html_e( 'Privacy Notice', 'spamanvil' ); ?></th> 228 241 <td> -
spamanvil/tags/1.1.1/includes/class-spamanvil-activator.php
r3461369 r3461389 100 100 'spamanvil_privacy_notice' => '1', 101 101 'spamanvil_skip_moderators' => '1', 102 'spamanvil_delete_data' => '0', 102 103 'spamanvil_system_prompt' => self::get_default_system_prompt(), 103 104 'spamanvil_user_prompt' => self::get_default_user_prompt(), -
spamanvil/tags/1.1.1/readme.txt
r3461372 r3461389 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 211 211 == Changelog == 212 212 213 = 1.1.1 = 214 * Feature: Data preservation on uninstall — settings, stats, logs, and blocked IPs are kept by default when reinstalling 215 * Enhancement: New "Delete Data on Uninstall" option in General settings for users who want a complete removal 216 213 217 = 1.1.0 = 214 218 * Feature: Welcome redirect after activation with setup guidance -
spamanvil/tags/1.1.1/spamanvil.php
r3461369 r3461389 4 4 * Plugin URI: https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/ 5 5 * Description: Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.1. 0' );21 define( 'SPAMANVIL_VERSION', '1.1.1' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ ); -
spamanvil/tags/1.1.1/uninstall.php
r3461359 r3461389 4 4 } 5 5 6 global $wpdb; 6 // Always clear scheduled hooks (safe, no data loss). 7 wp_clear_scheduled_hook( 'spamanvil_process_queue' ); 8 wp_clear_scheduled_hook( 'spamanvil_cleanup_logs' ); 9 10 // Only delete data if the user opted in. 11 if ( '1' !== get_option( 'spamanvil_delete_data', '0' ) ) { 12 return; 13 } 7 14 8 15 // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery … … 13 20 // Reason: Uninstall must drop custom plugin tables and clean up options directly. 14 21 // Variables are local to this uninstall script, not true globals. 22 23 global $wpdb; 15 24 16 25 // Drop custom tables. … … 37 46 delete_option( $option ); 38 47 } 39 40 // Clear scheduled hooks.41 wp_clear_scheduled_hook( 'spamanvil_process_queue' );42 wp_clear_scheduled_hook( 'spamanvil_cleanup_logs' ); -
spamanvil/trunk/admin/class-spamanvil-admin.php
r3461369 r3461389 245 245 update_option( 'spamanvil_log_retention', absint( $_POST['spamanvil_log_retention'] ?? 30 ) ); 246 246 update_option( 'spamanvil_skip_moderators', isset( $_POST['spamanvil_skip_moderators'] ) ? '1' : '0' ); 247 update_option( 'spamanvil_delete_data', isset( $_POST['spamanvil_delete_data'] ) ? '1' : '0' ); 247 248 update_option( 'spamanvil_privacy_notice', isset( $_POST['spamanvil_privacy_notice'] ) ? '1' : '0' ); 248 249 } -
spamanvil/trunk/admin/views/settings-general.php
r3461359 r3461389 225 225 226 226 <tr> 227 <th scope="row"><?php esc_html_e( 'Delete Data on Uninstall', 'spamanvil' ); ?></th> 228 <td> 229 <label> 230 <input type="checkbox" name="spamanvil_delete_data" value="1" <?php checked( get_option( 'spamanvil_delete_data', '0' ), '1' ); ?>> 231 <?php esc_html_e( 'Delete all plugin data when the plugin is deleted', 'spamanvil' ); ?> 232 </label> 233 <p class="description"> 234 <?php esc_html_e( 'When disabled, your settings, statistics, logs, and blocked IPs are preserved if you reinstall the plugin. Enable this only if you want a complete removal.', 'spamanvil' ); ?> 235 </p> 236 </td> 237 </tr> 238 239 <tr> 227 240 <th scope="row"><?php esc_html_e( 'Privacy Notice', 'spamanvil' ); ?></th> 228 241 <td> -
spamanvil/trunk/includes/class-spamanvil-activator.php
r3461369 r3461389 100 100 'spamanvil_privacy_notice' => '1', 101 101 'spamanvil_skip_moderators' => '1', 102 'spamanvil_delete_data' => '0', 102 103 'spamanvil_system_prompt' => self::get_default_system_prompt(), 103 104 'spamanvil_user_prompt' => self::get_default_user_prompt(), -
spamanvil/trunk/readme.txt
r3461372 r3461389 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 211 211 == Changelog == 212 212 213 = 1.1.1 = 214 * Feature: Data preservation on uninstall — settings, stats, logs, and blocked IPs are kept by default when reinstalling 215 * Enhancement: New "Delete Data on Uninstall" option in General settings for users who want a complete removal 216 213 217 = 1.1.0 = 214 218 * Feature: Welcome redirect after activation with setup guidance -
spamanvil/trunk/spamanvil.php
r3461369 r3461389 4 4 * Plugin URI: https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/ 5 5 * Description: Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.1. 0' );21 define( 'SPAMANVIL_VERSION', '1.1.1' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ ); -
spamanvil/trunk/uninstall.php
r3461359 r3461389 4 4 } 5 5 6 global $wpdb; 6 // Always clear scheduled hooks (safe, no data loss). 7 wp_clear_scheduled_hook( 'spamanvil_process_queue' ); 8 wp_clear_scheduled_hook( 'spamanvil_cleanup_logs' ); 9 10 // Only delete data if the user opted in. 11 if ( '1' !== get_option( 'spamanvil_delete_data', '0' ) ) { 12 return; 13 } 7 14 8 15 // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery … … 13 20 // Reason: Uninstall must drop custom plugin tables and clean up options directly. 14 21 // Variables are local to this uninstall script, not true globals. 22 23 global $wpdb; 15 24 16 25 // Drop custom tables. … … 37 46 delete_option( $option ); 38 47 } 39 40 // Clear scheduled hooks.41 wp_clear_scheduled_hook( 'spamanvil_process_queue' );42 wp_clear_scheduled_hook( 'spamanvil_cleanup_logs' );
Note: See TracChangeset
for help on using the changeset viewer.