PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
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 3.5.1 All 200 releases
← All changes | includes/FrontEnd/FrontEnd.php +6 -1 4.5.64.9.2 View file →
@@ -72,9 +72,13 @@
72 72 $post_type = get_query_var( 'post_type' ) != null ? get_query_var( 'post_type' ) : '';
73 73 $author_id = get_query_var( 'author' ) != null ? get_query_var( 'author' ) : 0;
74 74 $author_docs_count = count_user_posts( $author_id, 'docs' );
75 75
76 - if ( $post_type == 'docs' && $author_docs_count > 0 ) {
76 + // Only override on an actual author archive — otherwise this also fires on
77 + // the main docs archive (where $author_id falls back to 0) whenever any doc
78 + // has post_author 0, hijacking the docs/MKB archive (and its FSE template)
79 + // with the author template.
80 + if ( is_author() && $post_type == 'docs' && $author_docs_count > 0 ) {
77 81 wp_enqueue_style('betterdocs-breadcrumb');
78 82 $template_path = BETTERDOCS_ABSPATH . 'views/templates/authors/author.php';
79 83 }
80 84
@@ -318,8 +322,9 @@
318 322 'betterdocs-reactions',
319 323 'betterdocsReactionsConfig',
320 324 [
321 325 'post_id' => get_the_ID(),
326 + 'nonce' => wp_create_nonce( 'wp_rest' ),
322 327 'FEEDBACK' => [
323 328 'DISPLAY' => true,
324 329 'TEXT' => esc_html__( 'How did you feel?', 'betterdocs' ),
325 330 'SUCCESS' => betterdocs()->settings->get( 'reaction_feedback_text', __( 'Thanks for your feedback', 'betterdocs' ) ),