[wp-trac] [WordPress Trac] #14299: get_post_permalink incorrect documentation and variable name

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


#14299: get_post_permalink incorrect documentation and variable name
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0.1    
Component:  Post Types    |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Should always be a post object, so we can use the same callbacks we have
 on `post_link`.

 That's how I discovered this issue: I was about to create a new callback
 to handle filtering a custom object type with `post_type_link` instead of
 `post_link` (as the plugin had prior to 3.0), but then I discovered in
 fact I could just use the existing callback and attach it to
 `post_type_link`.

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


More information about the wp-trac mailing list