You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bug Fixes
Fix rewrite rules silently lost when WpApp is set up inside an add_action('init', ...) callback at default priority 10. The registry hook is now added at priority 99 so it runs even when registered mid-firing. (#1)
Add a defensive check in on_wp_loaded() that defers the rewrite flush to the next request if the rules haven't been registered yet, preventing a flush against an empty ruleset. (#1)
Documentation & Examples
Added a warning to the "Flushing Rewrite Rules" section in docs/routing.md that WpApp must be set up at plugins_loaded, not inside an init callback.
Fixed three example files (examples/minimal-app/minimal-app.php, examples/dark-mode-example.php, examples/basic-usage.php) to wrap setup in add_action('plugins_loaded', ...).
Cleaned up examples/basic-usage.php which referenced non-existent add_table() and api() methods.