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

WordPress Trac noreply at wordpress.org
Sun Jul 28 20:11:49 UTC 2013


#17320: has_post_format() should accept an array
------------------------------------+------------------------------
 Reporter:  janfabry                |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Taxonomy                |     Version:  3.2
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by ericmann):

 Refreshed the patch to match recent updates to Core and updated to remove
 unnecessary `unset()`s.

 In addition, the code will now just sanitize and prefix the array (or
 single string) and pass the array directly to `has_term()` (which already
 accepted arrays to begin with.

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


More information about the wp-trac mailing list