WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 19 months ago

#21862 closed enhancement

Don't display show_option_none in wp_dropdown_categories when categories exist — at Initial Version

Reported by: nofearinc Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Taxonomy Keywords:
Focuses: Cc:

Description

I can't find an application of having an extra entry for show_option_none select option if we have category listing. Is there any reason to keep it there, like for external filters? If so, that still conflicts with the second example below.

First off, it is invalid since there are some categories available. Second, having both show_option_none and show_option_all displays both entries.

Related to #21856 trying to list only visible terms.

Change History (1)

@nofearinc2 years ago

remove the conditional statement where categories do exist

Note: See TracTickets for help on using tickets.