[wp-trac] [WordPress Trac] #21479: Twenty Twelve: hide category and tag output in post meta if only 1 term
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 15 05:20:24 UTC 2012
#21479: Twenty Twelve: hide category and tag output in post meta if only 1 term
------------------------------+---------------------------
Reporter: lancewillett | Owner: lancewillett
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.5
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+---------------------------
Comment (by lancewillett):
Replying to [comment:9 nacin]:
> `! empty( $categories_list )` can simply be `$categories_list`.
Agreed.
> Also, count() is unnecessary when empty() is already there.
The check is supposed to return false if only 1 category exists. So, the
check should be {{{count( $non_empty_categories ) < 2}}} instead, right?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21479#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list