Skip to content

v0.24.0

Choose a tag to compare

@github-actions github-actions released this 30 Aug 14:31
· 2 commits to main since this release
73c65c0
  • Renamed the plugin from "Smart Tags Optimizer" to "Termcraft - Taxonomy Manager" in response to the WordPress.org directory review, which flagged the old name as too generic and too close to an existing "Smart Tags" term. Changed the display name (termcraft.php header, readme.txt title), the slug/text domain (smart-tags-optimizertermcraft, ~200 __()/_e() calls across includes/), and renamed the main file ai-tags-optimizer.phptermcraft.php (plus the release.yml/deploy.yml path trigger, version grep, and SLUG). The internal wpto_ / WPTO_ code prefix and the wpto-* admin-page slugs are unchanged.
  • Replaced the direct Anthropic Claude HTTP integration in includes/class-wpto-api-client.php with WordPress core's AI Client (wp_ai_client_prompt() fluent builder: using_system_instruction(), using_max_tokens(), using_temperature(), using_model_preference(), is_supported_for_text_generation(), generate_text()). The plugin no longer performs wp_remote_post() to api.anthropic.com, stores no API key, and works with whatever provider the site owner configures in core. analyze_batch() now returns a wpto_no_ai_client / wpto_no_ai_provider WP_Error when unavailable; WPTO_Queue::ajax_start_analysis() checks provider_available() upfront.
  • Bumped Requires at least to 7.0 (the AI Client ships in WordPress 7.0).
  • class-wpto-settings.php: removed the wpto_api_key setting, field, and get_api_key(); wpto_model is now an optional comma-separated model-preference list read via get_model_preference() (returns string[]); the "Test API key" button/AJAX (wpto_test_api_key) became "Check AI provider" (wpto_check_ai_providerajax_check_provider()). assets/admin.js handler and the wptoData.i18n keys updated to match (enterApiKey/testingApiKeycheckingProvider).
  • class-wpto-activator.php: DB_VERSION 2 → 3; activate() no longer seeds wpto_api_key; maybe_upgrade() deletes the stale wpto_api_key option.
  • Moved the admin-notice URL-cleanup from an inline <script> block in WPTO_Admin_Page::strip_notice_query_args() (removed) to the enqueued assets/admin.js, fed by a new NOTICE_QUERY_ARGS class constant passed through wptoData.noticeArgs. Resolves the Plugin Check "use wp_enqueue" finding.

For the full version history, see CHANGELOG.md.