| @@ -19,9 +19,9 @@ | ||
| 19 | 19 | |
| 20 | 20 | $charitable_active_tab = isset( $_GET['tab'] ) ? esc_html( $_GET['tab'] ) : 'export'; // phpcs:ignore |
| 21 | 21 | $charitable_active_sub_tab = isset( $_GET['sub_tab'] ) ? esc_html( $_GET['sub_tab'] ) : ''; // phpcs:ignore |
| 22 | 22 | $charitable_group = isset( $_GET['group'] ) ? esc_html( $_GET['group'] ) : $charitable_active_tab; // phpcs:ignore |
| 23 | -$charitable_tab_no_form_tag = array( 'import', 'export', 'system-info', 'snippets', 'customize', 'logs' ); | |
| 23 | +$charitable_tab_no_form_tag = array( 'import', 'export', 'system-info', 'snippets', 'customize', 'logs', 'ai-mcp' ); | |
| 24 | 24 | $charitable_tab_no_fields = array( 'system-info', 'snippets', 'customize', 'logs' ); |
| 25 | 25 | $charitable_tab_no_table = array( 'logs' ); |
| 26 | 26 | $charitable_sections = charitable_get_admin_tools()->get_sections(); |
| 27 | 27 | $charitable_show_return = $charitable_group !== $charitable_active_tab; |
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | <h1><?php echo get_admin_page_title(); // phpcs:ignore ?></h1> |
| 44 | 44 | <?php do_action( 'charitable_maybe_show_notification' ); ?> |
| 45 | 45 | <h2 class="nav-tab-wrapper"> |
| 46 | 46 | <?php foreach ( $charitable_sections as $charitable_tab => $charitable_name ) : // phpcs:ignore ?> |
| 47 | - <a href="<?php echo esc_url( add_query_arg( array( 'tab' => $charitable_tab ), admin_url( 'admin.php?page=charitable-tools' ) ) ); ?>" class="nav-tab <?php echo $charitable_active_tab == $charitable_tab ? 'nav-tab-active' : ''; ?>"><?php echo $charitable_name; // phpcs:ignore ?></a> | |
| 47 | + <a href="<?php echo esc_url( add_query_arg( array( 'tab' => $charitable_tab ), admin_url( 'admin.php?page=charitable-tools' ) ) ); ?>" class="nav-tab <?php echo $charitable_active_tab == $charitable_tab ? 'nav-tab-active' : ''; ?>"><?php echo $charitable_name; // phpcs:ignore ?><?php echo charitable_get_admin_tools()->get_section_badge( $charitable_tab ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped in get_section_badge(). ?></a> | |
| 48 | 48 | <?php endforeach ?> |
| 49 | 49 | </h2> |
| 50 | 50 | <?php if ( ! empty( $charitable_sub_sections ) ) : ?> |
| 51 | 51 | <h3 class="nav-sub-tab-wrapper"> |