zamoose/themehookalliance — pull request #3 by obenland (2012-07-06 16:23:41+00:00)
Title: Complete theme support implementation

With the current setup, THA works like Post Formats, where every supported format has to be explicitly registered. Reason: Even if only one hook type is registered with `add_theme_support( 'tha_hooks', array( 'head' ) )`, `current_theme_supports( 'tha_hooks' )` will return true.

This patch reflects that, also moves the `core` flag to the registration array and fixes `current_theme_supports()` return value, when a second parameter is specified.