Changeset 3466819
- Timestamp:
- 02/22/2026 10:19:15 AM (5 weeks ago)
- Location:
- spamanvil
- Files:
-
- 14 edited
- 1 copied
-
tags/1.2.2 (copied) (copied from spamanvil/trunk)
-
tags/1.2.2/admin/css/admin.css (modified) (1 diff)
-
tags/1.2.2/admin/views/settings-general.php (modified) (1 diff)
-
tags/1.2.2/includes/class-spamanvil-queue.php (modified) (1 diff)
-
tags/1.2.2/languages/spamanvil-pt_BR.mo (modified) (previous)
-
tags/1.2.2/languages/spamanvil-pt_BR.po (modified) (2 diffs)
-
tags/1.2.2/readme.txt (modified) (2 diffs)
-
tags/1.2.2/spamanvil.php (modified) (2 diffs)
-
trunk/admin/css/admin.css (modified) (1 diff)
-
trunk/admin/views/settings-general.php (modified) (1 diff)
-
trunk/includes/class-spamanvil-queue.php (modified) (1 diff)
-
trunk/languages/spamanvil-pt_BR.mo (modified) (previous)
-
trunk/languages/spamanvil-pt_BR.po (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/spamanvil.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spamanvil/tags/1.2.2/admin/css/admin.css
r3461590 r3466819 66 66 color: #646970; 67 67 margin-top: 4px; 68 } 69 70 /* Cron Status */ 71 .spamanvil-cron-status { 72 margin-top: 12px; 73 font-size: 13px; 74 color: #646970; 75 } 76 77 .spamanvil-cron-status.spamanvil-cron-stale { 78 color: #dba617; 68 79 } 69 80 -
spamanvil/tags/1.2.2/admin/views/settings-general.php
r3461503 r3466819 68 68 <span class="status-label"><?php esc_html_e( 'Max Retries', 'spamanvil' ); ?></span> 69 69 </div> 70 </div> 71 <?php 72 $last_cron_run = get_option( 'spamanvil_last_cron_run', 0 ); 73 $cron_stale = $last_cron_run > 0 && ( time() - $last_cron_run ) > 600; 74 $cron_class = ( ! $last_cron_run || $cron_stale ) ? ' spamanvil-cron-stale' : ''; 75 ?> 76 <div class="spamanvil-cron-status<?php echo esc_attr( $cron_class ); ?>"> 77 <?php if ( $last_cron_run ) : ?> 78 <?php 79 printf( 80 /* translators: %s: human-readable time difference (e.g. "2 minutes") */ 81 esc_html__( 'Last automatic run: %s ago', 'spamanvil' ), 82 '<span title="' . esc_attr( date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $last_cron_run ) ) . '">' 83 . esc_html( human_time_diff( $last_cron_run ) ) . '</span>' 84 ); 85 ?> 86 <?php if ( $cron_stale ) : ?> 87 <br><small><?php esc_html_e( 'WP-Cron may not be running. Check your site\'s cron configuration.', 'spamanvil' ); ?></small> 88 <?php endif; ?> 89 <?php else : ?> 90 <?php esc_html_e( 'Last automatic run: Never', 'spamanvil' ); ?> 91 <?php endif; ?> 70 92 </div> 71 93 <?php $total_actionable = $queue_status['queued'] + $queue_status['failed'] + $queue_status['max_retries']; ?> -
spamanvil/tags/1.2.2/includes/class-spamanvil-queue.php
r3461590 r3466819 66 66 } 67 67 set_transient( $lock_key, true, 300 ); // 5-minute lock. 68 69 update_option( 'spamanvil_last_cron_run', time(), false ); 68 70 69 71 // Default time limit for cron: 50 seconds (safe for most hosts). -
spamanvil/tags/1.2.2/languages/spamanvil-pt_BR.po
r3466596 r3466819 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: SpamAnvil 1.2. 1\n"8 "Project-Id-Version: SpamAnvil 1.2.2\n" 9 9 "Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-" 10 10 "plugin-for-wordpress/\n" … … 351 351 msgstr "Últimos 30 Dias" 352 352 353 #, php-format 354 msgid "Last automatic run: %s ago" 355 msgstr "Última execução automática: %s atrás" 356 357 msgid "Last automatic run: Never" 358 msgstr "Última execução automática: Nunca" 359 360 msgid "WP-Cron may not be running. Check your site's cron configuration." 361 msgstr "O WP-Cron pode não estar funcionando. Verifique a configuração de cron do seu site." 362 353 363 msgid "Last Updated" 354 364 msgstr "Última Atualização" -
spamanvil/tags/1.2.2/readme.txt
r3466596 r3466819 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 18 Stable tag: 1.2.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 215 215 == Changelog == 216 216 217 = 1.2.2 = 218 * Feature: "Last automatic run" timestamp in Queue Status card shows when WP-Cron last processed the queue 219 * Enhancement: Warning displayed when cron hasn't run in over 10 minutes (helps diagnose stale queues) 220 217 221 = 1.2.1 = 218 222 * Fix: Queue now processes automatically — spawn_cron() called after each comment is enqueued so processing starts immediately instead of waiting for the next site visit -
spamanvil/tags/1.2.2/spamanvil.php
r3466596 r3466819 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.2. 16 * Version: 1.2.2 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.2. 1' );21 define( 'SPAMANVIL_VERSION', '1.2.2' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ ); -
spamanvil/trunk/admin/css/admin.css
r3461590 r3466819 66 66 color: #646970; 67 67 margin-top: 4px; 68 } 69 70 /* Cron Status */ 71 .spamanvil-cron-status { 72 margin-top: 12px; 73 font-size: 13px; 74 color: #646970; 75 } 76 77 .spamanvil-cron-status.spamanvil-cron-stale { 78 color: #dba617; 68 79 } 69 80 -
spamanvil/trunk/admin/views/settings-general.php
r3461503 r3466819 68 68 <span class="status-label"><?php esc_html_e( 'Max Retries', 'spamanvil' ); ?></span> 69 69 </div> 70 </div> 71 <?php 72 $last_cron_run = get_option( 'spamanvil_last_cron_run', 0 ); 73 $cron_stale = $last_cron_run > 0 && ( time() - $last_cron_run ) > 600; 74 $cron_class = ( ! $last_cron_run || $cron_stale ) ? ' spamanvil-cron-stale' : ''; 75 ?> 76 <div class="spamanvil-cron-status<?php echo esc_attr( $cron_class ); ?>"> 77 <?php if ( $last_cron_run ) : ?> 78 <?php 79 printf( 80 /* translators: %s: human-readable time difference (e.g. "2 minutes") */ 81 esc_html__( 'Last automatic run: %s ago', 'spamanvil' ), 82 '<span title="' . esc_attr( date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $last_cron_run ) ) . '">' 83 . esc_html( human_time_diff( $last_cron_run ) ) . '</span>' 84 ); 85 ?> 86 <?php if ( $cron_stale ) : ?> 87 <br><small><?php esc_html_e( 'WP-Cron may not be running. Check your site\'s cron configuration.', 'spamanvil' ); ?></small> 88 <?php endif; ?> 89 <?php else : ?> 90 <?php esc_html_e( 'Last automatic run: Never', 'spamanvil' ); ?> 91 <?php endif; ?> 70 92 </div> 71 93 <?php $total_actionable = $queue_status['queued'] + $queue_status['failed'] + $queue_status['max_retries']; ?> -
spamanvil/trunk/includes/class-spamanvil-queue.php
r3461590 r3466819 66 66 } 67 67 set_transient( $lock_key, true, 300 ); // 5-minute lock. 68 69 update_option( 'spamanvil_last_cron_run', time(), false ); 68 70 69 71 // Default time limit for cron: 50 seconds (safe for most hosts). -
spamanvil/trunk/languages/spamanvil-pt_BR.po
r3466596 r3466819 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: SpamAnvil 1.2. 1\n"8 "Project-Id-Version: SpamAnvil 1.2.2\n" 9 9 "Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-" 10 10 "plugin-for-wordpress/\n" … … 351 351 msgstr "Últimos 30 Dias" 352 352 353 #, php-format 354 msgid "Last automatic run: %s ago" 355 msgstr "Última execução automática: %s atrás" 356 357 msgid "Last automatic run: Never" 358 msgstr "Última execução automática: Nunca" 359 360 msgid "WP-Cron may not be running. Check your site's cron configuration." 361 msgstr "O WP-Cron pode não estar funcionando. Verifique a configuração de cron do seu site." 362 353 363 msgid "Last Updated" 354 364 msgstr "Última Atualização" -
spamanvil/trunk/readme.txt
r3466596 r3466819 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 18 Stable tag: 1.2.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 215 215 == Changelog == 216 216 217 = 1.2.2 = 218 * Feature: "Last automatic run" timestamp in Queue Status card shows when WP-Cron last processed the queue 219 * Enhancement: Warning displayed when cron hasn't run in over 10 minutes (helps diagnose stale queues) 220 217 221 = 1.2.1 = 218 222 * Fix: Queue now processes automatically — spawn_cron() called after each comment is enqueued so processing starts immediately instead of waiting for the next site visit -
spamanvil/trunk/spamanvil.php
r3466596 r3466819 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.2. 16 * Version: 1.2.2 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.2. 1' );21 define( 'SPAMANVIL_VERSION', '1.2.2' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset
for help on using the changeset viewer.