add remove_theme_support(), props nathanrice, fixes #12739
git-svn-id: https://develop.svn.wordpress.org/trunk@13877 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3e9d7f8975
commit
580bd283fd
|
@ -1545,6 +1545,20 @@ function add_theme_support( $feature ) {
|
||||||
$_wp_theme_features[$feature] = array_slice( func_get_args(), 1 );
|
$_wp_theme_features[$feature] = array_slice( func_get_args(), 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows a theme to de-register its support of a certain feature
|
||||||
|
*
|
||||||
|
* Must be called in the themes functions.php file to work.
|
||||||
|
*
|
||||||
|
* @since 3.0.0
|
||||||
|
* @param string $feature the feature being added
|
||||||
|
*/
|
||||||
|
function remove_theme_support( $feature ) {
|
||||||
|
global $_wp_theme_features;
|
||||||
|
|
||||||
|
unset($_wp_theme_features[$feature]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks a theme's support for a given feature
|
* Checks a theme's support for a given feature
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue