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

WordPress Trac noreply at wordpress.org
Thu Apr 25 21:56:53 UTC 2013


#24164: Deprecate `get_permalink()`
-------------------------+------------------------------
 Reporter:  ericmann     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Template     |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by knutsp):

 Replying to [comment:18 markoheijnen]:
 > I don't get why it should be deprecated. get_permalink() isn't a theme
 function so to me it shouldn't have to follow the pattern.
 > I use it a lot in plugins for all kinds of things and it has most of the
 time nothing to do with a theme.

 Even if this function may be used outside the loop, it's used in themes
 and templates, specifically when concatenating to build a html
 string/block for later printing, or for special processing.

 As long as it's a "soft" deprecation and aliasing, I see no problems. The
 pro is making it a bit easier to learn basic WordPress functions. For us
 who have learned, there is no point.

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


More information about the wp-trac mailing list