Make WordPress Core

Opened 15 years ago

Closed 11 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:
Priority: normal Milestone:
Component: Permalinks Version: 3.1
Severity: normal Keywords: needs-patch
Cc: Focuses:

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
15 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
13 years ago

  • Component TemplatePermalinks

#3 @chriscct7
11 years ago

  • Milestone Future Release
  • Resolutionmaybelater
  • Status newclosed

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.