[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 20:14:18 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):

 It might make sense to keep the stated argument type as an integer, as I
 suggest in my second patch on #14299, but keep it an object passed to the
 filter.  That would make it more parallel to `get_permalink`.

 It's curious that we discovered this issue independently within a day of
 each other.

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


More information about the wp-trac mailing list