Make WordPress Core

Opened 10 years ago

Last modified 5 years ago

#30705 new enhancement

Add parameter to get_the_term_list() to allow templating

Reported by: davidjlaietta's profile davidjlaietta Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Taxonomy Keywords: needs-testing needs-unit-tests needs-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Similar to #27238 the parameter $term_template is suggested to allow for user created formatting for get_the_term_list(), as opposed to the previous standard of simply linking to each list in the term.

The reasoning for the change is that general linking is not always the desired action for displaying term lists. The method for inclusion is similar to [30209].

Attachments (1)

category-template.diff (1.2 KB) - added by davidjlaietta 10 years ago.
inclusion of $term_template argument

Download all attachments as: .zip

Change History (5)

10 years ago

inclusion of $term_template argument

#1 @SergeyBiryukov
10 years ago

  • Description modified (diff)

#2 @johnbillion
10 years ago

  • Version changed from trunk to 2.5

#3 @johnbillion
10 years ago

  • Keywords has-patch needs-testing added

#4 @boonebgorges
10 years ago

  • Keywords needs-unit-tests needs-patch added; has-patch removed
  • Milestone changed from Awaiting Review to Future Release

Would like to see unit tests for this. Also, if we're going to add support here, we should also add it to functions that call get_the_term_list() - namely, get_the_tag_list().

Note: See TracTickets for help on using tickets.