[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 03:53:20 UTC 2011


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

Comment (by 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.
 {{{
 case 'post-thumbnails':
 case 'post-formats':
 // bla
 }}}
 Haven't tested it though.

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


More information about the wp-trac mailing list