[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
Thu Aug 27 01:56:20 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:  boonebgorges
     Type:  enhancement            |      Status:  reopened
 Priority:  normal                 |   Milestone:  4.4
Component:  Taxonomy               |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+---------------------------

Comment (by boonebgorges):

 DrewAPicture - Thanks for chiming in. When patching, I'd originally used
 `hide_title_if_empty`, for the reasons you list, but I backed off because
 I felt that "empty" was ambiguous between an empty *title* and an empty
 *category list*. (An empty *title* is *never* shown.)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33460#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list