Opened 15 years ago
Closed 10 years ago
#16929 closed defect (bug) (maybelater)
pass the $type_of_url context param on user_trailingslashit() for CPT's
| Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
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'.