Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#21862 closed enhancement (wontfix)

Don't display show_option_none in wp_dropdown_categories when categories exist

Reported by: nofearinc's profile 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.

Attachments (1)

patch-category-template.diff (637 bytes) - added by nofearinc 12 years ago.
remove the conditional statement where categories do exist

Download all attachments as: .zip

Change History (4)

@nofearinc
12 years ago

remove the conditional statement where categories do exist

#1 follow-up: @SergeyBiryukov
12 years ago

  • Description modified (diff)

#2 in reply to: ↑ 1 @c3mdigital
11 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
  • Version set to 2.1

Replying to nofearinc

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 >here, like for external filters? If so, that still conflicts with the second example below.

Use case: Adding multiple dropdown select filters for custom taxonomies on edit.php. I want to be able to exclude certain taxonomies from the query when filtering. The initial design takes into account that you might want to display both hence the different option values, -1 for none and 0 for all.

#3 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.