[wp-trac] [WordPress Trac] #24164: Deprecate `get_permalink()`

WordPress Trac noreply at wordpress.org
Tue Apr 23 21:02:40 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 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24164#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list