WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#21862 new enhancement

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

Reported by: nofearinc Owned by:
Priority: normal Milestone: Awaiting Review
Component: Taxonomy Version:
Severity: normal Keywords:
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)

nofearinc9 months ago

remove the conditional statement where categories do exist

comment:1 SergeyBiryukov9 months ago

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