The WordPress default theme is the theme a fresh install activates, and in WordPress 7.1 that is Twenty Twenty-Five. It is set by the WP_DEFAULT_THEME constant, and it is also the theme WordPress switches to when your active theme's files go missing.
That second job is where most guides get it wrong.
WordPress does not switch to the default theme when your theme crashes, conflicts with a plugin, or throws a fatal error. It only switches when the theme's files are gone, and only when an administrator opens one particular screen.
This post covers what the default theme is in 7.1, what the fallback really does, why a deleted default theme never comes back on its own, and how to switch to it safely when you are debugging.
What is the default WordPress theme right now?
Twenty Twenty-Five. In WordPress 7.1.5, wp-includes/default-constants.php sets:
define( 'WP_DEFAULT_THEME', 'twentytwentyfive' );
The release ships three bundled themes in wp-content/themes: Twenty Twenty-Three, Twenty Twenty-Four and Twenty Twenty-Five. Twenty Twenty-Five arrived with WordPress 6.7, and the copy in 7.1.5 is version 1.5, tested up to 7.1 and requiring PHP 7.2.
If you have read elsewhere that the current default is Twenty Twenty-Four or Twenty Twenty-Three, those pages are out of date. Of the four top-ranking guides we read on 2026-11-24, none named Twenty Twenty-Five as current, including two updated in September and October 2026.
All three bundled themes are block themes. There has not been a classic default theme since Twenty Twenty-One, which matters later when you use the default theme to debug a classic site.
What does the default theme actually do?
On a current site, WP_DEFAULT_THEME matters in four places, and only one of them affects a site that is already running:
| Where | What it does |
|---|---|
Install (populate_options) |
The theme a new site starts on. On multisite, every new subsite too. |
| Network setup | Added to the network's allowed themes, so subsites can always activate it. |
| Site Health | Checks that a default theme is installed, and tells you to keep it. |
validate_current_theme() |
Switches the site to it when the active theme is broken. |
If the theme named by WP_DEFAULT_THEME is not installed, each of these falls back to the newest core default that is. Core keeps an ordered list of every default from "WordPress Classic" to Twenty Twenty-Five and walks it backwards.
Does WordPress switch to the default theme on a fatal error?
No.
This is the claim almost every guide makes, in some form: the default theme is used "when another theme fails or throws a fatal error", or "if there is any conflict on your site". We found versions of it in InstaWP, WPZOOM, WP Hive and WPBeginner's guides.
Here is what validate_current_theme() in 7.1.5 actually checks. A theme is invalid only if one of these is true:
- It has none of
templates/index.html,block-templates/index.htmlorindex.php. - It has no
style.css. - It is a child theme and its own
style.cssis missing.
That is a test for missing files. It never runs your theme's PHP, so it cannot see a fatal error, a plugin conflict, or a layout that broke after an update.
A theme that fatals goes down a different path.
Since WordPress 5.2, the visitor gets "There has been a critical error on this website", and an administrator gets an email with a Recovery Mode link. In that recovery session the theme is paused, meaning its functions.php is skipped for you.
The site is not switched to Twenty Twenty-Five, and visitors keep seeing the error.
When does the fallback actually happen?
validate_current_theme() is called from exactly two places in core: Appearance, Themes (wp-admin/themes.php) and the Customizer. Nothing on the front end calls it.
So if someone deletes or renames the active theme's folder over FTP, here is the sequence:
- Visitors get an empty page. The template loader finds no template and includes nothing.
- A logged-in administrator viewing the front end gets an error page instead:
The theme directory "yourtheme" does not exist. - The site stays like that until an administrator opens Appearance, Themes or the Customizer.
- That page load calls
switch_theme( WP_DEFAULT_THEME )and shows "The active theme is broken. Reverting to the default theme."
The gap between step 1 and step 4 can be hours on a site nobody logs into. The fallback is a repair the admin screen does, not a safety net under the front end.
You can also turn it off. Returning false from the validate_current_theme filter skips the check entirely, which some deployment setups do on purpose.
Why you should keep the default theme installed
The fallback needs something to fall back to. If neither WP_DEFAULT_THEME nor any other core default is installed, validate_current_theme() gives up and the site stays broken.
Site Health flags this. With no default theme present, it raises a recommended item, "Have a default theme available", with the text: "Default themes are used by WordPress automatically if anything is wrong with your chosen theme."
It also shapes the inactive-themes advice. Site Health's own wording tells you to remove unused themes but keep "Twenty Twenty-Five, the default WordPress theme", your active theme, and its parent.
So the honest cleanup is: delete Twenty Twenty-Three and Twenty Twenty-Four if you like, and keep Twenty Twenty-Five. Our post on deleting a WordPress theme covers what that leaves behind in the database.
If you delete Twenty Twenty-Five, will an update bring it back?
No, not on any update you are likely to run.
Core updates install new bundled themes from a list in wp-admin/includes/update-core.php, where each theme carries the version that introduced it. Twenty Twenty-Five is listed against 6.7.
The updater only copies a bundled theme when that version is newer than the one you are upgrading from. A site already on 6.7 or later never gets Twenty Twenty-Five copied in again, whether you deleted it or not.
Reinstall it yourself instead, from Appearance, Themes, Add Theme, or with WP-CLI:
wp theme install twentytwentyfive
The same rule explains why an old site often has a stack of defaults. A site that started on 6.1 and updated through 6.4 and 6.7 received Twenty Twenty-Four and Twenty Twenty-Five on those updates, on top of whatever it shipped with.
Can you change the default theme?
Yes, with the constant. Define it in wp-config.php, above the line that loads wp-settings.php, using the theme's folder name rather than its display name:
define( 'WP_DEFAULT_THEME', 'my-company-base' );
This does not change the theme your site is using. It changes which theme new sites start on and which theme the fallback switches to.
It is most useful on multisite, where it sets the starting theme for every new subsite. Pick a theme you control and that has no required plugins, since the fallback activates it without checking anything.
If the folder you name does not exist, core quietly uses the newest installed core default instead, so a typo will not stop installs. It will just give you Twenty Twenty-Five.
How to switch back to the default theme
From the dashboard, go to Appearance, Themes and click Activate on Twenty Twenty-Five. With WP-CLI:
wp theme activate twentytwentyfive
# If it was deleted
wp theme install twentytwentyfive --activate
If you cannot reach wp-admin, set the two theme options directly. Both must change, because template is the parent theme and stylesheet is the active one:
wp option update template twentytwentyfive
wp option update stylesheet twentytwentyfive
Without WP-CLI, renaming the broken theme's folder and then loading /wp-admin/themes.php does the same thing, using the fallback described above. The admin side does not depend on the theme, so it usually loads even when the front end does not.
What you lose when you switch to the default theme
Switching a classic site to Twenty Twenty-Five is a bigger change than it looks. Twenty Twenty-Five is a block theme, so your menus, widgets and Customizer settings do not display the same way.
The settings are not deleted.
Customizer options live in theme_mods_<slug>, one row per theme, and Site Editor changes are stored against the theme that made them. They come back when you switch back.
What does change is where things land.
WordPress guesses where your widgets go on a theme switch, which our widgets post walks through. Our guide to testing a theme switch covers the rest.
Using the default theme to debug
"Switch to a default theme" is the standard first step when you are hunting a conflict: if the bug disappears on Twenty Twenty-Five, the theme is involved. It is a good test, and it is the theme half of a plugin conflict test.
On a live site it has a cost. Every visitor sees Twenty Twenty-Five while you test, and on a classic site that means a different header, different menus and missing widgets.
There are two honest options.
The Health Check and Troubleshooting plugin has a troubleshooting mode where "all plugins are disabled, and a default theme is used, but only for your user". It has 200,000+ installs, but its wordpress.org page (fetched 2026-11-24) shows version 1.7.1 from July 2024 and a warning that it is untested with the latest three major releases.
The other option is to do it on a copy. The SandyWP Cloner packages the live site's database, themes, plugins and media into a disposable sandbox, and it only reads the live site.
Activate Twenty Twenty-Five on the copy, reproduce the bug or fail to, and throw it away. Every sandbox has WP-CLI over SSH, so the commands above run as written.
You can also test the fallback itself there. Rename the active theme's folder on the copy, load the front end logged out and logged in, then open Appearance, Themes and watch it revert.
Use a sandbox for the debugging. Do not use one to judge whether Twenty Twenty-Five is the right theme to run your business on, because that is a design decision, not a test.
The short version
- Current default: Twenty Twenty-Five, set by
WP_DEFAULT_THEMEin WordPress 7.1. - Fallback trigger: missing theme files only (
index.phportemplates/index.html, plusstyle.css). Not fatal errors, not conflicts. - Fallback timing: only when an admin opens Appearance, Themes or the Customizer. Visitors see an empty page until then.
- Fatal errors: handled by Recovery Mode, which pauses the theme for the admin and does not switch it.
- Keep it installed: delete older defaults if you like, but keep Twenty Twenty-Five. Core updates will not reinstall it.
- Change it:
define( 'WP_DEFAULT_THEME', 'folder-name' );inwp-config.php. It does not change the active theme. - Debug with it on a copy, not on the site your visitors are using.
