Plugin Directory

Changeset 3466819


Ignore:
Timestamp:
02/22/2026 10:19:15 AM (5 weeks ago)
Author:
aamato
Message:

Release 1.2.2

Location:
spamanvil
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • spamanvil/tags/1.2.2/admin/css/admin.css

    r3461590 r3466819  
    6666    color: #646970;
    6767    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;
    6879}
    6980
  • spamanvil/tags/1.2.2/admin/views/settings-general.php

    r3461503 r3466819  
    6868                <span class="status-label"><?php esc_html_e( 'Max Retries', 'spamanvil' ); ?></span>
    6969            </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; ?>
    7092        </div>
    7193        <?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  
    6666        }
    6767        set_transient( $lock_key, true, 300 ); // 5-minute lock.
     68
     69        update_option( 'spamanvil_last_cron_run', time(), false );
    6870
    6971        // Default time limit for cron: 50 seconds (safe for most hosts).
  • spamanvil/tags/1.2.2/languages/spamanvil-pt_BR.po

    r3466596 r3466819  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: SpamAnvil 1.2.1\n"
     8"Project-Id-Version: SpamAnvil 1.2.2\n"
    99"Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-"
    1010"plugin-for-wordpress/\n"
     
    351351msgstr "Últimos 30 Dias"
    352352
     353#, php-format
     354msgid "Last automatic run: %s ago"
     355msgstr "Última execução automática: %s atrás"
     356
     357msgid "Last automatic run: Never"
     358msgstr "Última execução automática: Nunca"
     359
     360msgid "WP-Cron may not be running. Check your site's cron configuration."
     361msgstr "O WP-Cron pode não estar funcionando. Verifique a configuração de cron do seu site."
     362
    353363msgid "Last Updated"
    354364msgstr "Última Atualização"
  • spamanvil/tags/1.2.2/readme.txt

    r3466596 r3466819  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.2.1
     8Stable tag: 1.2.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    215215== Changelog ==
    216216
     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
    217221= 1.2.1 =
    218222* 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  
    44 * Plugin URI:        https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/
    55 * Description:       Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics.
    6  * Version:           1.2.1
     6 * Version:           1.2.2
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.2.1' );
     21define( 'SPAMANVIL_VERSION', '1.2.2' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
  • spamanvil/trunk/admin/css/admin.css

    r3461590 r3466819  
    6666    color: #646970;
    6767    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;
    6879}
    6980
  • spamanvil/trunk/admin/views/settings-general.php

    r3461503 r3466819  
    6868                <span class="status-label"><?php esc_html_e( 'Max Retries', 'spamanvil' ); ?></span>
    6969            </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; ?>
    7092        </div>
    7193        <?php $total_actionable = $queue_status['queued'] + $queue_status['failed'] + $queue_status['max_retries']; ?>
  • spamanvil/trunk/includes/class-spamanvil-queue.php

    r3461590 r3466819  
    6666        }
    6767        set_transient( $lock_key, true, 300 ); // 5-minute lock.
     68
     69        update_option( 'spamanvil_last_cron_run', time(), false );
    6870
    6971        // Default time limit for cron: 50 seconds (safe for most hosts).
  • spamanvil/trunk/languages/spamanvil-pt_BR.po

    r3466596 r3466819  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: SpamAnvil 1.2.1\n"
     8"Project-Id-Version: SpamAnvil 1.2.2\n"
    99"Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-"
    1010"plugin-for-wordpress/\n"
     
    351351msgstr "Últimos 30 Dias"
    352352
     353#, php-format
     354msgid "Last automatic run: %s ago"
     355msgstr "Última execução automática: %s atrás"
     356
     357msgid "Last automatic run: Never"
     358msgstr "Última execução automática: Nunca"
     359
     360msgid "WP-Cron may not be running. Check your site's cron configuration."
     361msgstr "O WP-Cron pode não estar funcionando. Verifique a configuração de cron do seu site."
     362
    353363msgid "Last Updated"
    354364msgstr "Última Atualização"
  • spamanvil/trunk/readme.txt

    r3466596 r3466819  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.2.1
     8Stable tag: 1.2.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    215215== Changelog ==
    216216
     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
    217221= 1.2.1 =
    218222* 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  
    44 * Plugin URI:        https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/
    55 * Description:       Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics.
    6  * Version:           1.2.1
     6 * Version:           1.2.2
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.2.1' );
     21define( 'SPAMANVIL_VERSION', '1.2.2' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.