[wp-trac] [WordPress Trac] #24164: Deprecate `get_permalink()`
WordPress Trac
noreply at wordpress.org
Tue Apr 23 05:35:17 UTC 2013
#24164: Deprecate `get_permalink()`
-----------------------------+-----------------------------
Reporter: ericmann | Type: feature request
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Template
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+-----------------------------
With the exception of `get_permalink()`, all in-loop template tags follow
a simple pattern:
- the_author -> get_the_author
- the_content -> get_the_content
- the_title -> get_the_title
It's easy for developers to keep remember that `the_{something}` will echo
a value while `get_the_{something}` will return it.
For the sake of consistency, `get_permalink()` should be deprecated and
replaced with `get_the_permalink()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24164>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list