Changeset 3368533
- Timestamp:
- 09/26/2025 02:12:55 PM (6 months ago)
- Location:
- aigude-tools/trunk
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
README-de_DE.txt (deleted)
-
README.txt (modified) (4 diffs)
-
aigude-tools.php (modified) (4 diffs)
-
languages/aigude-tools-readme-de_DE.po (added)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
aigude-tools/trunk/README.txt
r3367867 r3368533 2 2 Contributors: pagemachine, maltamirano 3 3 Tags: ai, alt text, accessibility, images, seo 4 Stable tag: 2.1. 04 Stable tag: 2.1.1 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8 … … 76 76 == Changelog == 77 77 78 = 2.1.1 = 79 * Updated uninstall routine 80 * Debug: log only when debugging is enabled 81 78 82 = 2.1.0 = 79 83 * Added server-side prompt and placeholders translation … … 123 127 - `_wp_attachment_image_alt` (final alt text) 124 128 - `_aigude_alt_suggestion` (last generated suggestion) 125 - `_aigude_alt_translation_<lang>` (optional translations)129 126 130 127 131 == Location of Processing == … … 140 144 It deletes: 141 145 - Options: `aigude_alt_servers`, `aigude_target_language` 142 - Attachment meta starting with `_aigude_alt_` (e.g., `_aigude_alt_suggestion` , `_aigude_alt_translation_*`).146 - Attachment meta starting with `_aigude_alt_` (e.g., `_aigude_alt_suggestion`). 143 147 144 148 On multisite, the uninstaller runs for every site in the network. -
aigude-tools/trunk/aigude-tools.php
r3367867 r3368533 4 4 * Plugin URI: https://wordpress.org/plugins/aigude-tools/ 5 5 * Description: Generate and manage image alt text with AI — supports bulk actions, custom multilingual prompts, and full Media Library integration. 6 * Version: 2.1. 06 * Version: 2.1.1 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 314 314 // Build v2 prompt_spec JSON (DeepL codes; per-token lang and translatable) 315 315 $prompt_spec = self::build_prompt_spec($prompt, $prompt_lang, $tpl_src_lang, $id); 316 // TEMP LOG – TO-REMOVE-BY-OWNER: inspect prompt_spec sent (single)317 if ( defined('WP_DEBUG') && WP_DEBUG) {316 // LOG: inspect prompt_spec sent (single) 317 if (self::debug_enabled()) { 318 318 error_log('[AiGude Tools] prompt_spec(single) id=' . $id . ': ' . wp_json_encode($prompt_spec)); 319 319 } … … 431 431 // Build v2 prompt_spec JSON (DeepL codes; per-token lang and translatable) 432 432 $prompt_spec = self::build_prompt_spec($tpl_for_expansion, $prompt_lang, $tpl_src_lang, $id); 433 // TEMP LOG – TO-REMOVE-BY-OWNER: inspect prompt_spec sent (bulk per id)434 if ( defined('WP_DEBUG') && WP_DEBUG) {433 // LOG: inspect prompt_spec sent (bulk per id) 434 if (self::debug_enabled()) { 435 435 error_log('[AiGude Tools] prompt_spec(bulk) id=' . $id . ': ' . wp_json_encode($prompt_spec)); 436 436 } … … 724 724 'timeout' => 120, 725 725 ]); 726 } 727 728 /** Determine whether debug logging is enabled for this plugin. */ 729 private static function debug_enabled(): bool { 730 // Standard WordPress flags 731 $wp_debug = defined('WP_DEBUG') && WP_DEBUG; 732 $script_debug = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG; 733 734 // Environment variable (e.g., Docker compose WORDPRESS_DEBUG=1) 735 $env = getenv('WORDPRESS_DEBUG'); 736 $env_debug = is_string($env) ? filter_var($env, FILTER_VALIDATE_BOOLEAN) : false; 737 738 return ($wp_debug || $script_debug || $env_debug) === true; 726 739 } 727 740 -
aigude-tools/trunk/uninstall.php
r3361969 r3368533 18 18 delete_option( 'aigude_target_language' ); 19 19 20 // Known meta keys created by this plugin 20 // Known meta keys created by this plugin (v2: no per-language translation metas) 21 21 $meta_keys = array( '_aigude_alt_suggestion' ); 22 $langs = array( 'en', 'de', 'es', 'fr', 'it' );23 foreach ( $langs as $lang ) {24 $meta_keys[] = '_aigude_alt_translation_' . $lang;25 }26 22 27 23 foreach ( $meta_keys as $mk ) {
Note: See TracChangeset
for help on using the changeset viewer.