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

WordPress Trac noreply at wordpress.org
Fri Mar 7 04:25:16 UTC 2014


#24164: Deprecate `get_permalink()`
-------------------------+---------------------
 Reporter:  ericmann     |       Owner:  nacin
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.9
Component:  Permalinks   |     Version:  3.5
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------

Comment (by Viper007Bond):

 I still think it might be worth explicitly promoting `get_the_permalink()`
 over `get_permalink()` by swapping them. `get_the_permalink()` would have
 the code and `get_permalink()` would be the alias with a `@deprecated` tag
 (but without throwing a deprecated error).

 I love that we have an alias now but we should have a canonical function
 that's encouraged to be used.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24164#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list