Opened 16 years ago
Closed 16 years ago
#13257 closed defect (bug) (duplicate)
Pass $post to post_type_link filter, instead of $id
| Reported by: | bigdawggi | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I like the idea (makes sense) but patch is stale.
Related: #12526 (for mixed/optional post argument)