[wp-trac] [WordPress Trac] #29580: When a child-theme is active, the parent-theme should not be deletable.

WordPress Trac noreply at wordpress.org
Mon Sep 8 12:30:36 UTC 2014


#29580: When a child-theme is active, the parent-theme should not be deletable.
--------------------------+------------------------------
 Reporter:  ounziw        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Changes (by karpstrucking):

 * keywords:   => needs-patch
 * component:  General => Themes


Comment:

 Confirmed. Looks like this has been around for awhile, not new to 4.0.

 I started working on a patch of the `wp_prepare_themes_for_js` function in
 `wp-admin/includes/theme.php` (to remove the delete link from the UI) but
 then it occurred to me perhaps this should be built into the
 `delete_theme()` function instead. For comparison, it looks like the
 equivalent function for deleting plugins throws an error if an attempt to
 delete an active plugin is made, but `delete_theme()` does not.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29580#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list