From 64260fca02ac37bd8628c6fb0eef804986063da1 Mon Sep 17 00:00:00 2001 From: bengizmo Date: Mon, 28 Jul 2025 18:07:35 -0300 Subject: [PATCH] fix: Update activator to use new HVAC_Route_Manager class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace deprecated register_legacy_rewrite_rules() call with HVAC_Route_Manager - Ensures plugin activation works with new architecture 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- includes/class-hvac-activator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-hvac-activator.php b/includes/class-hvac-activator.php index c030b382..997fb195 100644 --- a/includes/class-hvac-activator.php +++ b/includes/class-hvac-activator.php @@ -40,10 +40,10 @@ class HVAC_Activator { // Schedule cron jobs self::schedule_cron_jobs(); - // Register legacy redirects before flushing - if (class_exists('HVAC_Plugin')) { - $plugin = HVAC_Plugin::instance(); - $plugin->register_legacy_rewrite_rules(); + // Register routes before flushing + if (class_exists('HVAC_Route_Manager')) { + $route_manager = HVAC_Route_Manager::instance(); + $route_manager->register_rewrite_rules(); } // Flush rewrite rules