Skip to content

Cannot delete a new theme cloned using the subfolder option #500

@Olein-jp

Description

@Olein-jp

Environment

WordPress: 6.4.2
Create Block Theme: 1.13.8

Details

From the Create Block Theme panel of the site editor, enter any text in the subfolder and clone the theme.

The theme will then be activated automatically, but if you try to remove the theme after it has been deactivated, an error will occur.

I tested the following flow.

  1. select Create Block in the Create Block Theme panel in the site editor
  2. Fill in the required information and click Clone Theme.

image

  1. The cloned theme will be activated automatically. We can see a message "Theme cloned successfully. The editor will now reload."
  2. Activate another block theme (disable the cloned theme)
  3. Delete the disabled cloned theme from Theme in Appearance

image

  1. Error message is displayed and cannot delete. We can see a message "Deletion failed: The requested theme does not exist.".

image

Inside of wp-content/themes/ is like this. Didn't remove subfolder and cloned theme folder.

screenshot

Of course, this can be handled by accessing the Themes folder and deleting the corresponding folder manually, but this is inconvenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions