[wp-trac] [WordPress Trac] #12217: get_comment_reply_link gets post ID from wrong place

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 25 06:45:00 UTC 2010


#12217: get_comment_reply_link gets post ID from wrong place
--------------------------+-------------------------------------------------
 Reporter:  juggledad     |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.0  
Component:  General       |     Version:  2.9.1
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by dd32):

 > The Atahualpa Theme ends up calling this routine when adding comments to
 PAGES (an option the theme allows) and the $post is not being passed thus
 causing an error.

 There is no reason why $post should not be set for pages, It refers to the
 currrently-displayed "post" A post being an object in the database
 regardless of its post_type.

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


More information about the wp-trac mailing list