[wp-trac] [WordPress Trac] #54533: State more clearly that an active theme can't be deleted

WordPress Trac noreply at wordpress.org
Fri Apr 11 13:30:42 UTC 2025


#54533: State more clearly that an active theme can't be deleted
---------------------------------------+---------------------------------
 Reporter:  tobifjellner               |       Owner:  (none)
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Themes                     |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:  ui, administration
---------------------------------------+---------------------------------

Comment (by Presskopp):

 There is no direct way to determine if a theme is a parent theme. However,
 indirectly, if a theme is not active and {{{data.actions['delete']}}} is
 not set, it is most likely a parent theme (although this is not
 guaranteed). That's why the patch is working. In a perfect world we would
 have a {{{has_active_child_theme()}}} method,

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


More information about the wp-trac mailing list