Improve redirect handling

This commit is contained in:
Cooper Dalrymple
2025-10-29 12:55:24 -05:00
parent d0d78d4732
commit 8938a25d2a
4 changed files with 41 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ final class Template {
use Singleton;
protected function __construct() {
add_action('template_redirect', [$this, 'template_redirect']);
add_action('template_redirect', [$this, 'template_redirect'], 1);
}
public function template_redirect():void {