[wp-trac] [WordPress Trac] #12446: "get_comments" transforms post id

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 4 03:32:39 UTC 2010


#12446: "get_comments" transforms post id
--------------------------+-------------------------------------------------
 Reporter:  jmabe         |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:         
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by amattie):

 For what it's worth, post_id 0 won't work without some changes to the
 get_permalink function as it uses 0 as the default. If you emulate a post
 object so that you can return 100% custom content, get_permalink needs to
 be overridden and needs to have a non-zero post ID passed to it.

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


More information about the wp-trac mailing list