WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 4 years ago

#16929 closed defect (bug) (maybelater)

pass the $type_of_url context param on user_trailingslashit() for CPT's

Reported by: dd32 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Permalinks Keywords: needs-patch
Focuses: Cc:

Description

Currently get_post_permalink() does not pass the context flag to user_trailingslashit(), this means that for custom post types, it's not possible to target them through the 'user_trailingslashit' filter.

It might be worth checking to see if taxonomies and any other uses of user_trailingslashit() pass the context as well.

Change History (3)

#1 @dd32
8 years ago

redirect_canonical() also passes url's through this filter, In the case of *all* single pages(including that of CPT's), the context is set to 'single'.

#2 @nacin
5 years ago

  • Component changed from Template to Permalinks

#3 @chriscct7
4 years ago

  • Milestone Future Release deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Closing as maybelater. Complete lack of interest on the ticket over the last 5 years. Feel free to reopen when more interest re-emerges (particularly if there's a patch)

Note: See TracTickets for help on using tickets.