Make it easier to check theme support
|Reported by:||obenland||Owned by:||obenland|
Description (last modified by obenland)
Currently we don't make it too easy for plugins (and themes I suppose) to get access to the information passed in the second argument to add_theme_support().
To get more information about a theme's support for post thumbnails for example, a plugin would have to assign the return value of get_theme_support() to a variable and then access the value stored in the first key of the returned array:
<?php $support = get_theme_support( 'post-thumbnails' ); $actual_support = $support;
While this is not ideal for core features that themes need to register support for, it gets painful quickly when themes and plugins want to deal with information coupled to a custom feature.