[wp-trac] [WordPress Trac] #14294: get_permalink() calling get_post_permalink() with post object instead of post ID

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 13 18:26:12 UTC 2010


#14294: get_permalink() calling get_post_permalink() with post object instead of
post ID
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.0            
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------

Comment(by filosofo):

 As I mentioned over there, `post_link` filter has post object as second
 argument, so it makes sense to be consistent with that and pass the post
 object to the second argument of the callback on `post_type_link`.

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


More information about the wp-trac mailing list