PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 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 All 203 releases
← All changes | includes/Editors/BlockEditor/Blocks/Sidebar.php +6 -2 4.8.1 → 4.9.5 View file →
@@ -60,9 +60,12 @@
60 60 'docs_per_page' => -1,
61 61 'postsOrderBy' => 'title',
62 62 'postsOrder' => 'asc',
63 63 'enableNestedSubcategory' => false,
64 - 'enableLazyLoad' => false,
64 + // Default follows the global "Lazy Load Sidebar Docs & Subcategories"
65 + // setting, mirroring the Elementor sidebar widget's control default, so
66 + // enabling the setting lazy-loads the block too unless overridden.
67 + 'enableLazyLoad' => (bool) betterdocs()->settings->get( 'archive_lazy_load_descendants' ),
65 68 'docs_per_subcategory' => 10,
66 69 'titleTag' => 'h1',
67 70 'show_count' => false,
68 71 'enableStickyTOC' => false,
@@ -90,9 +93,10 @@
90 93 8 => 8,
91 94 ];
92 95 $sidebar_layout = isset( $layout_mapper[ $layout ] ) ? $layout_mapper[ $layout ] : 1;
93 96
94 - if ( ! betterdocs()->is_pro_active() ) {
97 + // Sidebars 2, 3 and 6 ship in Pro; every other layout's template is in Free.
98 + if ( ! betterdocs()->is_pro_active() && in_array( $sidebar_layout, [ 2, 3, 6 ], true ) ) {
95 99 $sidebar_layout = 1;
96 100 }
97 101
98 102 add_filter( 'betterdocs_base_terms_args', [ $this, 'filter_base_args' ], 10, 1 );