has_post_format() should accept an array
|Reported by:||janfabry||Owned by:||nacin|
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.
Change History (14)
comment:2 F J Kaiser — 13 months ago
- Component changed from General to Taxonomy
- Keywords dev-feedback added
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed