[wp-trac] [WordPress Trac] #13212: shortlink wp_get_shortlink fix

WordPress Trac wp-trac at lists.automattic.com
Sun May 2 18:40:34 UTC 2010


#13212: shortlink wp_get_shortlink fix
--------------------------+-------------------------------------------------
 Reporter:  ShaneF        |       Owner:                            
     Type:  defect (bug)  |      Status:  new                       
 Priority:  normal        |   Milestone:  3.0                       
Component:  General       |     Version:  3.0                       
 Severity:  normal        |    Keywords:  shortlink has-patch commit
--------------------------+-------------------------------------------------

Comment(by ryan):

 Wouldn't that global stomp the $id arg.  Attached an alternative patch
 that makes use of get_post()'s ability to fetch the current post when
 passed 0.  Untested.

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


More information about the wp-trac mailing list