Allow pluggable arg checking in current_theme_supports. Props dd32. fixes #11611
git-svn-id: https://develop.svn.wordpress.org/trunk@19682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
112ed6af44
commit
7f92b7ec89
@ -1938,7 +1938,6 @@ function current_theme_supports( $feature ) {
|
||||
|
||||
$args = array_slice( func_get_args(), 1 );
|
||||
|
||||
// @todo Allow pluggable arg checking
|
||||
switch ( $feature ) {
|
||||
case 'post-thumbnails':
|
||||
// post-thumbnails can be registered for only certain content/post types by passing
|
||||
@ -1958,7 +1957,7 @@ function current_theme_supports( $feature ) {
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
return apply_filters('current_theme_supports-' . $feature, true, $args, $_wp_theme_features[$feature]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user