WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 20 months ago

Last modified 20 months ago

#21862 closed enhancement (wontfix)

Don't display show_option_none in wp_dropdown_categories when categories exist

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

@nofearinc3 years ago

remove the conditional statement where categories do exist

comment:1 follow-up: @SergeyBiryukov3 years ago

  • Description modified (diff)

comment:2 in reply to: ↑ 1 @c3mdigital20 months 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.

comment:3 @SergeyBiryukov20 months ago

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