[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:21:47 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 | Keywords: needs-patch
Focuses: |
-------------------------+-----------------------------
Sometimes we might need to use the function `remove_theme_support()` to
only support specific details of a specific theme feature, in particular
it would be useful to be able to remove support for specific post formats
or remove post thumbnail support for specific post types (related to
#22080 for example).
These checks would need to happen in a `switch` statement, similar to the
other theme support functions, and we would need to handle additional
arguments.
For example, it should be possible to do `remove_theme_support( 'post-
formats', 'video' )` to remove support for the video post format.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36666>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list