admin管理员组

文章数量:1122846

When I go to the appearance admin page, it shows a whole bunch of themes that I don't need (for example the stock "Twenty Fifteen" theme), but when I go to delete them, it fails, saying:

Deletion failed: The requested theme does not exist.

If I look in my wp-content/themes folder, I can see that the theme is indeed not there.

Why are these themes listed, and how can I remove them?

I've seen many questions asking about the opposite problem, but not this way around!

When I go to the appearance admin page, it shows a whole bunch of themes that I don't need (for example the stock "Twenty Fifteen" theme), but when I go to delete them, it fails, saying:

Deletion failed: The requested theme does not exist.

If I look in my wp-content/themes folder, I can see that the theme is indeed not there.

Why are these themes listed, and how can I remove them?

I've seen many questions asking about the opposite problem, but not this way around!

Share Improve this question asked Apr 30, 2024 at 7:47 SynchroSynchro 1115 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Well this is silly!

It turns out that someone had moved these themes into a folder called "unused", which I didn't look in. It appears that WP finds themes stored in subfolders, but doesn't adjust paths to match when it comes to deleting them.

This is a WordPress bug.

本文标签: Themes admin page lists a themebut it fails to delete and is not present on disk