[wp-trac] [WordPress Trac] #23882: get_the_permalink() accepts an ID, the_permalink() does not

WordPress Trac noreply at wordpress.org
Thu Mar 28 17:12:08 UTC 2013


#23882: get_the_permalink() accepts an ID, the_permalink() does not
-----------------------------+-------------------------
 Reporter:  johnjamesjacoby  |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Permalinks
  Version:  trunk            |   Severity:  normal
 Keywords:  has-patch        |
-----------------------------+-------------------------
 I always found it odd that the_permalink() doesn't accept a post ID passed
 into it, when get_the_permalink() does, and the_permalink() just calls
 get_the_permalink().

 After scouring trac for a duplicate (and not finding one) I've attached a
 patch to improve this.

 Related: #1271

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23882>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list