WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 4 years ago

#7251 closed enhancement (duplicate)

Allow the separator between category and its subcategory to be specified in template tag

Reported by: nbachiyski Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6
Component: Template Keywords:
Focuses: Cc:

Description

The get_category_parents() function supports setting a separator between a category and its sub-categories, but this functionality isn't exposed anywhere.

The patch adds a new optional $subcat_separator argument to both get_the_category_list() and the_category().

Attachments (1)

subcat-separator.diff (2.7 KB) - added by nbachiyski 6 years ago.

Download all attachments as: .zip

Change History (5)

nbachiyski6 years ago

comment:1 matt6 years ago

  • Milestone changed from 2.7 to 2.8

comment:2 janeforshort5 years ago

  • Milestone changed from 2.8 to Future Release

Punting to be evaluated in next development cycle due to time constraints.

comment:3 Denis-de-Bernardy5 years ago

  • Keywords needs-patch added; has-patch removed

comment:4 coffee2code4 years ago

  • Keywords needs-patch removed
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This appears to be a dup of #7005 and as such was fixed in r9190.

Note: See TracTickets for help on using tickets.