[wp-trac] [WordPress Trac] #17320: has_post_format() should accept an array

WordPress Trac wp-trac at lists.automattic.com
Wed May 4 13:06:32 UTC 2011


#17320: has_post_format() should accept an array
-------------------------+-----------------------------
 Reporter:  janfabry     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.2
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 {{{has_category()}}}, {{{has_tag()}}}, and {{{has_term()}}} accept an
 array as the first argument and return {{{true}}} if the post has any of
 the given terms. {{{has_post_format()}}} also uses {{{has_term()}}} in the
 background, but it calls {{{sanitize_key()}}} and adds {{{'post-
 format-'}}} to the passed format, which will fail when you pass an array.

 For consistency, it would be better if {{{has_post_format()}}} would also
 accept an array.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17320>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list