Opened 15 years ago
Closed 14 years ago
#13257 closed defect (bug) (duplicate)
Pass $post to post_type_link filter, instead of $id
Reported by: | bigdawggi | Owned by: | nacin |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | General | Keywords: | needs-patch |
Focuses: | Cc: |
Description
To keep with the standard set by the filter 'post_link' inside the get_permalink() function, should the second parameter of the 'post_type_link' be the $post, instead of the $id?
attached is the proposed diff
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
I like the idea (makes sense) but patch is stale.
Related: #12526 (for mixed/optional post argument)