array( 'title' => __('Basic firewall settings', 'all-in-one-wp-security-and-firewall') ), 'block-debug-log' => array( 'title' => __('Block debug log', 'all-in-one-wp-security-and-firewall') ), 'listing-directory-contents' => array( 'title' => __('Listing directory content', 'all-in-one-wp-security-and-firewall') ), ); $templates = apply_filters('aiowps_modify_htaccess_firewall_rules_template', $templates); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- PCP warning. No nonce. $subtab = isset($_GET['subtab']) ? sanitize_text_field(wp_unslash($_GET['subtab'])) : ''; ?>

    $template) { // Check if the current title is the first title $is_active = ($key === $subtab || $template['title'] === $first_title) ? 'class="aiowps-active"' : ''; $title = $template['title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- PCP error. No user input to escape. echo '
  • ' . esc_attr($title) . '
  • '; } ?>
$template) { $aio_wp_security->include_template('wp-admin/firewall/partials/' . $key . '.php', false, $htaccess_rules_data); } ?>