[wp-trac] [WordPress Trac] #36666: Enhance `remove_theme_support()` so that it can take additional arguments

WordPress Trac noreply at wordpress.org
Mon Apr 25 18:57:43 UTC 2016


#36666: Enhance `remove_theme_support()` so that it can take additional arguments
-------------------------+------------------------------
 Reporter:  flixos90     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  3.0
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------------------

Comment (by flixos90):

 Replying to [comment:1 jmichaelward]:
 > @flixos90 I can work on a patch for this. Looking at the
 `remove_theme_support()` method, it appears that the function is actually
 a wrapper method for `_remove_theme_support()`, which does include a
 switch statement to conditionally check for some theme settings. I assume
 the fix would need to be applied to this method instead of its wrapper -
 can you confirm?

 Sounds great. Yes, the detailed fix should go into
 `_remove_theme_support()`, the wrapper function `remove_theme_support()`
 only needs to be modified to pass the (optional) additional parameters on
 to the private function.

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


More information about the wp-trac mailing list