Changeset 3466854
- Timestamp:
- 02/22/2026 11:26:37 AM (5 weeks ago)
- Location:
- spamanvil
- Files:
-
- 10 edited
- 1 copied
-
tags/1.2.6 (copied) (copied from spamanvil/trunk)
-
tags/1.2.6/admin/views/settings-providers.php (modified) (4 diffs)
-
tags/1.2.6/languages/spamanvil-pt_BR.mo (modified) (previous)
-
tags/1.2.6/languages/spamanvil-pt_BR.po (modified) (1 diff)
-
tags/1.2.6/readme.txt (modified) (2 diffs)
-
tags/1.2.6/spamanvil.php (modified) (2 diffs)
-
trunk/admin/views/settings-providers.php (modified) (4 diffs)
-
trunk/languages/spamanvil-pt_BR.mo (modified) (previous)
-
trunk/languages/spamanvil-pt_BR.po (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/spamanvil.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spamanvil/tags/1.2.6/admin/views/settings-providers.php
r3461511 r3466854 18 18 $fallback = get_option( 'spamanvil_fallback_provider', '' ); 19 19 $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(); 23 foreach ( $providers as $slug => $name ) { 24 if ( $this->get_masked_key( $slug ) ) { 25 $configured_providers[ $slug ] = $name; 26 } 27 } 20 28 21 29 $default_models = array( … … 49 57 <select name="spamanvil_primary_provider"> 50 58 <option value=""><?php esc_html_e( '-- Select --', 'spamanvil' ); ?></option> 51 <?php foreach ( $ providers as $slug => $name ) : ?>59 <?php foreach ( $configured_providers as $slug => $name ) : ?> 52 60 <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $primary, $slug ); ?>> 53 61 <?php echo esc_html( $name ); ?> … … 62 70 <select name="spamanvil_fallback_provider"> 63 71 <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option> 64 <?php foreach ( $ providers as $slug => $name ) : ?>72 <?php foreach ( $configured_providers as $slug => $name ) : ?> 65 73 <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback, $slug ); ?>> 66 74 <?php echo esc_html( $name ); ?> … … 78 86 <select name="spamanvil_fallback2_provider"> 79 87 <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option> 80 <?php foreach ( $ providers as $slug => $name ) : ?>88 <?php foreach ( $configured_providers as $slug => $name ) : ?> 81 89 <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback2, $slug ); ?>> 82 90 <?php echo esc_html( $name ); ?> -
spamanvil/tags/1.2.6/languages/spamanvil-pt_BR.po
r3466849 r3466854 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: SpamAnvil 1.2. 5\n"8 "Project-Id-Version: SpamAnvil 1.2.6\n" 9 9 "Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-" 10 10 "plugin-for-wordpress/\n" -
spamanvil/tags/1.2.6/readme.txt
r3466849 r3466854 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 58 Stable tag: 1.2.6 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. 5=217 = 1.2.6 = 218 218 * Feature: Cron now automatically scans pending WordPress comments when the queue is empty — no manual "Scan Pending" click needed 219 219 * 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 220 221 * Enhancement: Warning displayed when DISABLE_WP_CRON is active, with instructions to set up a real server cron job 221 222 -
spamanvil/tags/1.2.6/spamanvil.php
r3466849 r3466854 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. 56 * Version: 1.2.6 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.2. 5' );21 define( 'SPAMANVIL_VERSION', '1.2.6' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ ); -
spamanvil/trunk/admin/views/settings-providers.php
r3461511 r3466854 18 18 $fallback = get_option( 'spamanvil_fallback_provider', '' ); 19 19 $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(); 23 foreach ( $providers as $slug => $name ) { 24 if ( $this->get_masked_key( $slug ) ) { 25 $configured_providers[ $slug ] = $name; 26 } 27 } 20 28 21 29 $default_models = array( … … 49 57 <select name="spamanvil_primary_provider"> 50 58 <option value=""><?php esc_html_e( '-- Select --', 'spamanvil' ); ?></option> 51 <?php foreach ( $ providers as $slug => $name ) : ?>59 <?php foreach ( $configured_providers as $slug => $name ) : ?> 52 60 <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $primary, $slug ); ?>> 53 61 <?php echo esc_html( $name ); ?> … … 62 70 <select name="spamanvil_fallback_provider"> 63 71 <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option> 64 <?php foreach ( $ providers as $slug => $name ) : ?>72 <?php foreach ( $configured_providers as $slug => $name ) : ?> 65 73 <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback, $slug ); ?>> 66 74 <?php echo esc_html( $name ); ?> … … 78 86 <select name="spamanvil_fallback2_provider"> 79 87 <option value=""><?php esc_html_e( '-- None --', 'spamanvil' ); ?></option> 80 <?php foreach ( $ providers as $slug => $name ) : ?>88 <?php foreach ( $configured_providers as $slug => $name ) : ?> 81 89 <option value="<?php echo esc_attr( $slug ); ?>" <?php selected( $fallback2, $slug ); ?>> 82 90 <?php echo esc_html( $name ); ?> -
spamanvil/trunk/languages/spamanvil-pt_BR.po
r3466849 r3466854 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: SpamAnvil 1.2. 5\n"8 "Project-Id-Version: SpamAnvil 1.2.6\n" 9 9 "Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-" 10 10 "plugin-for-wordpress/\n" -
spamanvil/trunk/readme.txt
r3466849 r3466854 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 58 Stable tag: 1.2.6 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. 5=217 = 1.2.6 = 218 218 * Feature: Cron now automatically scans pending WordPress comments when the queue is empty — no manual "Scan Pending" click needed 219 219 * 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 220 221 * Enhancement: Warning displayed when DISABLE_WP_CRON is active, with instructions to set up a real server cron job 221 222 -
spamanvil/trunk/spamanvil.php
r3466849 r3466854 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. 56 * Version: 1.2.6 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.2. 5' );21 define( 'SPAMANVIL_VERSION', '1.2.6' ); 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.