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

WordPress Trac noreply at wordpress.org
Wed Sep 10 19:32:56 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:  4.1
Component:  Themes                                |     Version:  4.0
 Severity:  normal                                |  Resolution:
 Keywords:  needs-testing has-patch dev-feedback  |     Focuses:
--------------------------------------------------+------------------

Comment (by jesin):

 Patch [attachment:29580.diff] fixes the PHP notice '''undefined variable
 `parents`...''' when there are no child themes.

 I noticed another problem on Multisite setups. A parent theme is deletable
 from sites not using its child. To reproduce:

 1. Login as the super admin and navigate to **Network Admin > Appearance >
 Themes**.
 2. **Network Enable** a parent and its child theme.
 3. Login to one of the sites and **Apply the child theme**.
 4. Login to another site and **delete its parent theme**.

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


More information about the wp-trac mailing list