[wp-trac] [WordPress Trac] #12739: Create remove_theme_support() function

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 29 16:33:34 UTC 2010


#12739: Create remove_theme_support() function
--------------------------+-------------------------------------------------
 Reporter:  nathanrice    |        Owner:          
     Type:  enhancement   |       Status:  reopened
 Priority:  normal        |    Milestone:  3.0     
Component:  Themes        |      Version:  3.0     
 Severity:  normal        |   Resolution:          
 Keywords:  dev-feedback  |  
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  theme-support => dev-feedback
  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 I hadn't had the chance to comment here yet, and am only doing so in
 passing at the moment.

 We use add_theme_support() internally in very interesting ways, that way
 we can use current_theme_supports() later on. That includes
 current_theme_supports('widgets') and 'editor-style', when in reality,
 you're never calling add_theme_support('editor-style') or 'widgets'.
 Instead, we use add_theme_support internally, calling it for example when
 a sidebar is registered.

 remove_theme_support('widgets') will stop current_theme_supports() from
 working, but will not remove widgets.

 If we do this, I guess we should probably blacklist certain ones such as
 background, widgets, etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12739#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list