Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/mu-plugins/disable-admin-email-confirmation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Disables the admin email confirmation screen in E2E tests.
*
* The database fixture bakes in a fixed `admin_email_lifespan` timestamp, so once
* that time passes WordPress redirects every admin login to
* `wp-login.php?action=confirm_admin_email` instead of wp-admin, breaking the
* Playwright global setup. Returning 0 from this filter disables the check
* regardless of the stored option value.
*
* @package HM\QueryLoop\Tests
*/

add_filter( 'admin_email_check_interval', '__return_zero' );
Loading