Make WordPress Core

Opened 3 years ago

Last modified 10 months ago

#19780 new enhancement

Named category functions/docs need cleaning up — at Version 2

Reported by: DrewAPicture Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch needs-refresh needs-unit-tests
Focuses: Cc:

Description (last modified by helenyhou)

Spawning from a small discussion in #19776, I think it's about time something is done to deal with the older named category functions such as wp_category_dropdown and wp_list_categories in category-template.php

These functions aren't technically category-only as they accept a set $taxonomy. And because they are actually taxonomy-agnostic, I think we have a few different routes we can take to clean up after ourselves a bit:

A) Lock down these functions to 'categories'-only in favor of new, taxonomy-agnostic ones.

B) Leave the functions alone but let the inline-docs and hard-coded strings such as 'No Categories' reflect their versatility. e.g. 'No Terms' vs 'No Categories'.

C) Deprecate these older functions in deference to newer, taxonomy-agnostic ones.

Change History (3)

comment:1 @DrewAPicture3 years ago

Sorry, should be #19776. Can somebody modify the description? Edit: Thanks, helenyhou

Last edited 3 years ago by DrewAPicture (previous) (diff)

comment:2 @helenyhou3 years ago

  • Description modified (diff)

@evansolomon3 years ago

Note: See TracTickets for help on using tickets.