Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#21862 closed enhancement

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

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

Description (last modified by SergeyBiryukov)

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 (2)

3 years ago

remove the conditional statement where categories do exist

#1 @SergeyBiryukov
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.