Skip to content

v1.1.2

Choose a tag to compare

@akirk akirk released this 21 Apr 11:29
· 157 commits to main since this release
452faf4

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.