[wp-trac] [WordPress Trac] #33460: wp_list_categories should display title_li only if the $categories is not empty , or have an option to hide it if $categories is empty
WordPress Trac
noreply at wordpress.org
Wed Aug 26 02:48:12 UTC 2015
#33460: wp_list_categories should display title_li only if the $categories is not
empty , or have an option to hide it if $categories is empty
----------------------------------------+-----------------------------
Reporter: vilkatis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+-----------------------------
Changes (by boonebgorges):
* keywords: => needs-patch good-first-bug
* milestone: Awaiting Review => Future Release
Comment:
Thanks for the ticket, vilkatis. Welcome to Trac!
I'm not sure whether it's intended behavior, but it's been like this
forever, and I think it'd cause problems to change it so that the title
doesn't appear when there are no categories to show.
However, having an option to hide the title if `$categories` is empty is
not a bad idea. Patches welcome.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33460#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list