Allow pluggable arg checking in current_theme_supports. Props dd32. fixes #11611

git-svn-id: http://svn.automattic.com/wordpress/trunk@19682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-01-05 18:29:40 +00:00
parent 9a4be393ec
commit f809fda4e7
1 changed files with 1 additions and 2 deletions

View File

@ -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]);
}
/**