[wp-trac] [WordPress Trac] #24164: Deprecate `get_permalink()`
WordPress Trac
noreply at wordpress.org
Wed Apr 24 12:35:49 UTC 2013
#24164: Deprecate `get_permalink()`
-----------------------------+------------------------------
Reporter: ericmann | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by aaronholbrook):
Replying to [comment:13 ericmann]:
> Replying to [comment:10 Viper007Bond]:
> > I'm for the alias/rename, but only a pseudo-deprecate of the current
function.
>
> I can live with that. New patch introduces `get_the_permalink()` with
the logic all moved to the appropriate place. `get_permalink()` becomes
just an alias for the other function, and is deprecated in the PHPDoc
block describing the function.
>
> Those of us with IDEs will see the change in our code, but it won't
liter PHP notices or break anything in the meantime.
+1 I think this is the way to go. Like [comment:9 travisnorthcutt] made
note of, it would help clean the codebase which I think would be a good
idea.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24164#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list