Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Allow pluggable arg checking in current_theme_supports. Props dd32. f…
Browse files Browse the repository at this point in the history
…ixes #11611

git-svn-id: http://core.svn.wordpress.org/trunk@19682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jan 5, 2012
1 parent d1a808e commit 1971ac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wp-includes/theme.php
Expand Up @@ -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
Expand All @@ -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]);
}

/**
Expand Down

0 comments on commit 1971ac7

Please sign in to comment.