Opened 10 years ago
Closed 10 years ago
#34234 closed task (blessed) (fixed)
Rename `id` param in get_the_permalink, get_permalink, and the_permalink
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | template | Cc: |
Description
The id
param in get_the_permalink, get_permalink, and the_permalink isn't very intuitive. id
is not a really good parameter name, partially because it doesn't actually describe what it is. Is it a post id? A user id? A random number called id? A serial number for a bikeshed? A MySQL column that autoincrements value?
If the id
param was renamed to post
it'd make the functions more self-documenting, and would require a minimal effort patch, making the functions more easily understood for newer developers by saving them the time of figuring out what exactly id
is.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 35001: