[wp-trac] [WordPress Trac] #23882: get_permalink() accepts an ID, the_permalink() does not
WordPress Trac
noreply at wordpress.org
Fri Oct 9 10:55:53 UTC 2015
#23882: get_permalink() accepts an ID, the_permalink() does not
-------------------------------------------+------------------------
Reporter: johnjamesjacoby | Owner: chriscct7
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.4
Component: Permalinks | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch commit dev-feedback | Focuses:
-------------------------------------------+------------------------
Comment (by chriscct7):
It should be noted there's alot of precedent for supporting an $id
parameter. Many of the template functions do as well, for example
`the_title_attribute`. Further, the use of $id is something that many
users as a wrapper function expect it to support. There's an early trac
ticket on this, and now that I notice it, several Codex articles that
assume it supports $id already, like the code example on
https://codex.wordpress.org/Template_Tags/the_category_rss.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23882#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list