From f809fda4e72b7bec30fff0a1891949ac65207611 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 5 Jan 2012 18:29:40 +0000 Subject: [PATCH] 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 --- wp-includes/theme.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 11db6e7df..ad42e0a2a 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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]); } /**