WordPress build repository browser

Changeset 64410


Ignore:
Timestamp:
11/04/2026 07:18:04 PM (5 days ago)
Author:
lancewillett
Message:

Build/Test Tools: Switch the E2E theme before the other resets.

E2E global setup activated Twenty Twenty-One at the same time as it deleted posts and blocks and reset preferences. switch_theme() saves template and stylesheet one after the other, so a request that loads between the two writes sees Ipsum as a child of Twenty Twenty-One. Ipsum then requires inc/abilities.php from the parent theme, which does not exist, and the request fails with a PHP fatal error that global setup cannot parse as JSON.

Activate the theme first, then run the other resets in parallel.

Follow-up to [65224].

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/15471

Props adrianmoldovanwp.
See #66455.

Built from ​https://develop.svn.wordpress.org/trunk@65261

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.