From 7f92b7ec8941a427fe5d6322f356cc7ce86f38c4 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@19682 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 11db6e7dfe..ad42e0a2ad 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]); } /**