Opened 4 years ago
Closed 4 years ago
#9519 closed defect (bug) (fixed)
Delete a child theme will delete parent theme
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | General | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: |
Description
I'm one of the maintainers and supporters of Thematic testing a lot of child themes. Today I wanted to clean up my theme directory using the backend. Deleting one of my child themes will delete the parent theme instead.
I'm running the current 2.8 SVN version 10912 on my local machine.
Let me know if you need more details.
Thanks,
Chris
Attachments (2)
Change History (8)
- Keywords has-patch needs-testing added; delete child theme child theme removed
Can you test the attached patch?
ionfish: Did you test that at all? It doesnt look like it'd do anything at all to me.
$_GETstylesheet? isnt passed at all, Line 197 of themes.php passes in $template, All occurences of $template related to the deletion should probably be renamed to $stylesheet
The Preview and Activate URIs both include the template and the stylesheet (now I look, the Delete one doesn't), so I based my patch on that. Here's an updated one.
comment:5
Wupperpirat — 4 years ago
Thanks a lot for your help .. the last 9519.1.diff is working .. I checked deletion of child themes: worked .. and I checked deletion of standard themes: worked.
Again .. thanks a lot for your help & Happy Easter!
Cheers,
Chris

So the child theme remains? Just the Parent theme gets deleted? (Looks like someone got Template vs Stylesheet mixed up)