v1.2.0: Route Registration Improvements
Description
This release focuses on enhancing route registration reliability and provides clearer guidance for developers implementing routes in WordForge-based plugins.
Key Improvements
-
Improved Route Registration: Fixed route registration issues by adding the wordforge_load_routes filter to prevent duplicate route registration
-
Better Service Provider Timing: Enhanced the order of operations during bootstrapping to ensure proper initialization
-
Route Facade Usage Guidance: Added best practices documentation for using the Route facade instead of the Router class directly
-
Early Bootstrapping Support: Modified core framework to support earlier bootstrapping in the WordPress lifecycle
-
Comprehensive Troubleshooting: Added detailed diagnostics for route registration issues
Under the Hood
-
Added filter hooks to allow plugins to disable default route loading
-
Modified
registerRoutes()method to respect custom filter settings -
Improved documentation for the route registration process
This release resolves issues where routes weren't being properly registered when using custom service providers, especially in complex plugin architectures.