Plugin Directory

Changeset 3466854


Ignore:
Timestamp:
02/22/2026 11:26:37 AM (5 weeks ago)
Author:
aamato
Message:

Release 1.2.6

Location:
spamanvil
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • spamanvil/tags/1.2.6/admin/views/settings-providers.php

    r3461511 r3466854  
    1818$fallback         = get_option( 'spamanvil_fallback_provider', '' );
    1919$fallback2        = get_option( 'spamanvil_fallback2_provider', '' );
     20
     21// Only providers with a configured API key can be selected in the dropdowns.
     22$configured_providers = array();
     23foreach ( $providers as $slug => $name ) {
     24    if ( $this->get_masked_key( $slug ) ) {
     25        $configured_providers[ $slug ] = $name;
     26    }
     27}
    2028
    2129$default_models = array(
     
    4957                <select name="spamanvil_primary_provider">
    5058                    <option value=""><?php esc_html_e( '-- Select --', 'spamanvil' ); ?></option>
    51                     <?php foreach ( $providers as $slug => $name ) : ?>
     59                    <?php foreach ( $configured_providers as $slug => $name ) : ?>
    5260                        <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $primary, $slug ); ?>>
    5361                            <?php echo esc_html( $name ); ?>
     
    6270                <select name="spamanvil_fallback_provider">
    6371                    <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option>
    64                     <?php foreach ( $providers as $slug => $name ) : ?>
     72                    <?php foreach ( $configured_providers as $slug => $name ) : ?>
    6573                        <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback, $slug ); ?>>
    6674                            <?php echo esc_html( $name ); ?>
     
    7886                <select name="spamanvil_fallback2_provider">
    7987                    <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option>
    80                     <?php foreach ( $providers as $slug => $name ) : ?>
     88                    <?php foreach ( $configured_providers as $slug => $name ) : ?>
    8189                        <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback2, $slug ); ?>>
    8290                            <?php echo esc_html( $name ); ?>
  • spamanvil/tags/1.2.6/languages/spamanvil-pt_BR.po

    r3466849 r3466854  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: SpamAnvil 1.2.5\n"
     8"Project-Id-Version: SpamAnvil 1.2.6\n"
    99"Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-"
    1010"plugin-for-wordpress/\n"
  • spamanvil/tags/1.2.6/readme.txt

    r3466849 r3466854  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.2.5
     8Stable tag: 1.2.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    215215== Changelog ==
    216216
    217 = 1.2.5 =
     217= 1.2.6 =
    218218* Feature: Cron now automatically scans pending WordPress comments when the queue is empty — no manual "Scan Pending" click needed
    219219* Fix: Comments stuck in "Max Retries" are now automatically retried after 1 hour instead of requiring manual intervention
     220* Enhancement: Provider dropdowns only show providers with a configured API key — prevents selecting unconfigured providers
    220221* Enhancement: Warning displayed when DISABLE_WP_CRON is active, with instructions to set up a real server cron job
    221222
  • spamanvil/tags/1.2.6/spamanvil.php

    r3466849 r3466854  
    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.5
     6 * Version:           1.2.6
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.2.5' );
     21define( 'SPAMANVIL_VERSION', '1.2.6' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
  • spamanvil/trunk/admin/views/settings-providers.php

    r3461511 r3466854  
    1818$fallback         = get_option( 'spamanvil_fallback_provider', '' );
    1919$fallback2        = get_option( 'spamanvil_fallback2_provider', '' );
     20
     21// Only providers with a configured API key can be selected in the dropdowns.
     22$configured_providers = array();
     23foreach ( $providers as $slug => $name ) {
     24    if ( $this->get_masked_key( $slug ) ) {
     25        $configured_providers[ $slug ] = $name;
     26    }
     27}
    2028
    2129$default_models = array(
     
    4957                <select name="spamanvil_primary_provider">
    5058                    <option value=""><?php esc_html_e( '-- Select --', 'spamanvil' ); ?></option>
    51                     <?php foreach ( $providers as $slug => $name ) : ?>
     59                    <?php foreach ( $configured_providers as $slug => $name ) : ?>
    5260                        <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $primary, $slug ); ?>>
    5361                            <?php echo esc_html( $name ); ?>
     
    6270                <select name="spamanvil_fallback_provider">
    6371                    <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option>
    64                     <?php foreach ( $providers as $slug => $name ) : ?>
     72                    <?php foreach ( $configured_providers as $slug => $name ) : ?>
    6573                        <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback, $slug ); ?>>
    6674                            <?php echo esc_html( $name ); ?>
     
    7886                <select name="spamanvil_fallback2_provider">
    7987                    <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option>
    80                     <?php foreach ( $providers as $slug => $name ) : ?>
     88                    <?php foreach ( $configured_providers as $slug => $name ) : ?>
    8189                        <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback2, $slug ); ?>>
    8290                            <?php echo esc_html( $name ); ?>
  • spamanvil/trunk/languages/spamanvil-pt_BR.po

    r3466849 r3466854  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: SpamAnvil 1.2.5\n"
     8"Project-Id-Version: SpamAnvil 1.2.6\n"
    99"Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-"
    1010"plugin-for-wordpress/\n"
  • spamanvil/trunk/readme.txt

    r3466849 r3466854  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.2.5
     8Stable tag: 1.2.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    215215== Changelog ==
    216216
    217 = 1.2.5 =
     217= 1.2.6 =
    218218* Feature: Cron now automatically scans pending WordPress comments when the queue is empty — no manual "Scan Pending" click needed
    219219* Fix: Comments stuck in "Max Retries" are now automatically retried after 1 hour instead of requiring manual intervention
     220* Enhancement: Provider dropdowns only show providers with a configured API key — prevents selecting unconfigured providers
    220221* Enhancement: Warning displayed when DISABLE_WP_CRON is active, with instructions to set up a real server cron job
    221222
  • spamanvil/trunk/spamanvil.php

    r3466849 r3466854  
    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.5
     6 * Version:           1.2.6
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.2.5' );
     21define( 'SPAMANVIL_VERSION', '1.2.6' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.