[wp-trac] [WordPress Trac] #18691: Check for specific post formats with `current_theme_supports()`

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 18 12:44:29 UTC 2011


#18691: Check for specific post formats with `current_theme_supports()`
-------------------------------------+--------------------
 Reporter:  ericmann                 |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.3
Component:  Post Types               |     Version:  3.2.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+--------------------
Changes (by duck_):

 * milestone:  Awaiting Review => 3.3


Comment:

 Replying to [comment:2 johnbillion]:
 > I think this patch can be simplified further. The logic is the same as
 that for post thumbnails, so it can use the same case statement.

 It's not entirely the same though due to:

 {{{
 if ( true === $_wp_theme_features[$feature] )  // Registered for all types
     return true;
 }}}

 for post-thumbnails.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18691#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list