feat(wpmc 1.1.0): Redirect hook moves to template_redirect@1

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-05-19 02:15:46 +05:00
parent 0ec9733368
commit 9586810507
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -7,14 +7,14 @@ use WPMultiCity\Redirect;
final class RedirectTest extends TestCase
{
public function test_register_attaches_wp_action_at_priority_9998(): void
public function test_register_attaches_template_redirect_at_priority_1(): void
{
Redirect::register();
self::assertSame(
9998,
has_action('wp', [Redirect::class, 'handle']),
'Redirect::register() must hook wp action at priority 9998'
1,
has_action('template_redirect', [Redirect::class, 'handle']),
'Redirect::register() must hook template_redirect at priority 1'
);
}