[wp-trac] [WordPress Trac] #13257: Pass $post to post_type_link filter, instead of $id

WordPress Trac wp-trac at lists.automattic.com
Wed May 5 00:39:43 UTC 2010


#13257: Pass $post to post_type_link filter, instead of $id
--------------------------+-------------------------------------------------
 Reporter:  bigdawggi     |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  General       |     Version:  3.0              
 Severity:  normal        |    Keywords:  filter, post-type
--------------------------+-------------------------------------------------
 To keep with the standard set by the filter 'post_link' inside the
 get_permalink() function, should the second parameter of the
 'post_type_link' be the $post, instead of the $id?

 attached is the proposed diff

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


More information about the wp-trac mailing list