fix: Update activator to use new HVAC_Route_Manager class
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
005a35d89e
commit
64260fca02
1 changed files with 4 additions and 4 deletions
|
|
@ -40,10 +40,10 @@ class HVAC_Activator {
|
||||||
// Schedule cron jobs
|
// Schedule cron jobs
|
||||||
self::schedule_cron_jobs();
|
self::schedule_cron_jobs();
|
||||||
|
|
||||||
// Register legacy redirects before flushing
|
// Register routes before flushing
|
||||||
if (class_exists('HVAC_Plugin')) {
|
if (class_exists('HVAC_Route_Manager')) {
|
||||||
$plugin = HVAC_Plugin::instance();
|
$route_manager = HVAC_Route_Manager::instance();
|
||||||
$plugin->register_legacy_rewrite_rules();
|
$route_manager->register_rewrite_rules();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flush rewrite rules
|
// Flush rewrite rules
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue