[wp-trac] Re: [WordPress Trac] #9963: get_permalink() returns wrong link outside The Loop

WordPress Trac wp-trac at lists.automattic.com
Fri May 29 02:48:24 GMT 2009


#9963: get_permalink() returns wrong link outside The Loop
--------------------------+-------------------------------------------------
 Reporter:  fmorel90      |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new 
 Priority:  high          |   Milestone:      
Component:  Permalinks    |     Version:  2.8 
 Severity:  major         |    Keywords:      
--------------------------+-------------------------------------------------

Comment(by ryan):

 get_permalink() does not create links to the current page. It only creates
 links to posts.  On a page with multiple posts, returning a link to the
 last post is about the only thing it can do in this context.

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


More information about the wp-trac mailing list