PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 All 201 releases
← All changes | includes/Core/WriteWithAI.php +3 -3 4.9.2 → 4.9.3 View file →
@@ -64,11 +64,11 @@
64 64 $platform_labels = ModelRegistry::platforms();
65 65 $model_labels = ModelRegistry::models( $active_platform );
66 66
67 67 // Glossary suggestions are existing-terms-only, and the glossaries taxonomy is only
68 - // registered for Pro (see Core\PostType::register_glossaries_taxonomy). So the "Suggest
69 - // glossaries" control must require, on top of the two settings, that Pro is active AND at
70 - // least one glossary term exists — otherwise the modal advertises an offer that can never
68 + // registered by Pro (see BetterDocsPro\Core\GlossaryTaxonomy::register_glossaries_taxonomy).
69 + // So the "Suggest glossaries" control must require, on top of the two settings, that Pro is
70 + // active AND at least one glossary term exists — otherwise the modal advertises an offer that can never
71 71 // return anything. Mirrors the Docs-AI-suite availability check in Core\DocsAISuite.
72 72 $glossary_count = wp_count_terms( array( 'taxonomy' => 'glossaries', 'hide_empty' => false ) );
73 73 $has_glossary_terms = ! is_wp_error( $glossary_count ) && (int) $glossary_count > 0;
74 74 $glossary_suggestions_enabled = (bool) $this->settings->get( 'enable_glossaries', false )